changeset 611:30d502905da9

git_handler: fix bugs introduced by 47df57f2bb2b which could never have passed tests
author Augie Fackler <raf@durin42.com>
date Tue, 17 Sep 2013 09:58:36 -0400
parents ec6d4146d5ca
children 60a4d55fdaa6
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
@@ -8,7 +8,6 @@
 from dulwich.repo import Repo
 from dulwich import client
 from dulwich import config as dul_config
-from StringIO import StringIO
 
 try:
     from mercurial import bookmarks
@@ -998,7 +997,7 @@
             return want
         try:
             progress = GitProgress(self.ui)
-            f = StringIO()
+            f = StringIO.StringIO()
             ret = client.fetch_pack(path, determine_wants, graphwalker, f.write, progress.progress)
             if(f.pos != 0):
                 f.seek(0)