mercurial/changegroup.py
changeset 3706 0d810798acb1
parent 3705 e9d339d5d2d7
child 3762 b9d3e12da485
--- a/mercurial/changegroup.py
+++ b/mercurial/changegroup.py
@@ -54,7 +54,7 @@ bundletypes = {
     "HG10GZ": ("HG10GZ", zlib.compressobj),
 }
 
-def writebundle(cg, filename, type):
+def writebundle(cg, filename, bundletype):
     """Write a bundle file and return its filename.
 
     Existing files will not be overwritten.
@@ -75,7 +75,7 @@ def writebundle(cg, filename, type):
             fh = os.fdopen(fd, "wb")
         cleanup = filename
 
-        header, compressor = bundletypes[type]
+        header, compressor = bundletypes[bundletype]
         fh.write(header)
         z = compressor()