comparison mercurial/httprepo.py @ 8312:b87a50b7125c

separate import lines from mercurial and general python modules
author Simon Heimberg <simohe@besonet.ch>
date Tue, 28 Apr 2009 17:40:46 +0200
parents 46293a0c7e9f
children f8ff65a83169
comparison
equal deleted inserted replaced
8311:e0eb03bfa5af 8312:b87a50b7125c
6 # This software may be used and distributed according to the terms of the 6 # This software may be used and distributed according to the terms of the
7 # GNU General Public License version 2, incorporated herein by reference. 7 # GNU General Public License version 2, incorporated herein by reference.
8 8
9 from node import bin, hex, nullid 9 from node import bin, hex, nullid
10 from i18n import _ 10 from i18n import _
11 import repo, os, urllib, urllib2, urlparse, zlib, util, httplib 11 import repo, changegroup, statichttprepo, error, url, util
12 import errno, socket, changegroup, statichttprepo, error, url 12 import os, urllib, urllib2, urlparse, zlib, httplib
13 import errno, socket
13 14
14 def zgenerator(f): 15 def zgenerator(f):
15 zd = zlib.decompressobj() 16 zd = zlib.decompressobj()
16 try: 17 try:
17 for chunk in util.filechunkiter(f): 18 for chunk in util.filechunkiter(f):