compat: just use '_callcompressable'
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Tue, 28 Feb 2017 14:31:28 +0100
changeset 1836 9e87ac06be90
parent 1835 93d4661a6ee7
child 1837 c8b07459c9bb
compat: just use '_callcompressable' That API is available in all version we supports.
hgext3rd/evolve/__init__.py
--- a/hgext3rd/evolve/__init__.py	Tue Feb 28 14:31:18 2017 +0100
+++ b/hgext3rd/evolve/__init__.py	Tue Feb 28 14:31:28 2017 +0100
@@ -3758,11 +3758,7 @@
         opts['heads'] = wireproto.encodelist(heads)
     if common is not None:
         opts['common'] = wireproto.encodelist(common)
-    if util.safehasattr(self, '_callcompressable'):
-        f = self._callcompressable("evoext_pullobsmarkers_0", **opts)
-    else:
-        f = self._callstream("evoext_pullobsmarkers_0", **opts)
-        f = self._decompress(f)
+    f = self._callcompressable("evoext_pullobsmarkers_0", **opts)
     length = int(f.read(20))
     chunk = 4096
     current = 0