util: remove compressors dict (API)
authorGregory Szorc <gregory.szorc@gmail.com>
Mon, 07 Nov 2016 18:34:51 -0800
changeset 30352 75f5beb54e29
parent 30351 f81002f736d7
child 30353 d045b4091197
util: remove compressors dict (API) We no longer have any in-tree consumers of this object. Use util.compengines instead.
mercurial/util.py
--- a/mercurial/util.py	Mon Nov 07 18:35:43 2016 -0800
+++ b/mercurial/util.py	Mon Nov 07 18:34:51 2016 -0800
@@ -3070,15 +3070,6 @@
 
 compengines.register(_noopengine())
 
-compressors = {
-    None: nocompress,
-    # lambda to prevent early import
-    'BZ': lambda: bz2.BZ2Compressor(),
-    'GZ': lambda: zlib.compressobj(),
-    }
-# also support the old form by courtesies
-compressors['UN'] = compressors[None]
-
 def _makedecompressor(decompcls):
     def generator(f):
         d = decompcls()