mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
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:
parent
621b383912
commit
520f944b25
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user