Mercurial > hg > hg-git
changeset 882:8b51d737f949
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.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Mon, 13 Apr 2015 08:03:57 -0700 |
parents | 95c0f46a6150 |
children | b56d4f4faf79 |
files | hggit/git_handler.py |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hggit/git_handler.py +++ b/hggit/git_handler.py @@ -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 @@ map_hg = self._map_hg hgshas = map_hg.keys() hgshas.sort() - import cStringIO buf = cStringIO.StringIO() bwrite = buf.write for hgsha in hgshas: