# HG changeset patch # User Pierre-Yves David # Date 1488288688 -3600 # Node ID 9e87ac06be90b327534b86a3f189b221b17f1fed # Parent 93d4661a6ee7b650fd308c77af39d11f5cb5d5ee compat: just use '_callcompressable' That API is available in all version we supports. diff -r 93d4661a6ee7 -r 9e87ac06be90 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