git_handler: move cStringIO to a global import

There are a couple of places that use StringIO for the added features it has
over cStringIO, so we can't replace all its uses wholesale.
This commit is contained in:
Siddharth Agarwal 2015-04-13 08:03:57 -07:00
parent 621b383912
commit 520f944b25

View File

@ -1,5 +1,5 @@
import collections, itertools, os, math, urllib, urllib2, re
import stat, posixpath, StringIO
import cStringIO, stat, posixpath, StringIO
from dulwich.errors import HangupException, GitProtocolError, UpdateRefsError
from dulwich.objects import Blob, Commit, Tag, Tree, parse_timezone, S_IFGITLINK
@ -190,7 +190,6 @@ class GitHandler(object):
map_hg = self._map_hg
hgshas = map_hg.keys()
hgshas.sort()
import cStringIO
buf = cStringIO.StringIO()
bwrite = buf.write
for hgsha in hgshas: