changeset 3607:5e2cfa64860c

obslog: more 4.1 code compatibility drop
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 22 Mar 2018 10:39:18 +0100
parents 9f2ba8ef517b
children d520df57d1c7
files hgext3rd/evolve/obshistory.py
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/obshistory.py	Thu Mar 22 10:38:01 2018 +0100
+++ b/hgext3rd/evolve/obshistory.py	Thu Mar 22 10:39:18 2018 +0100
@@ -619,9 +619,6 @@
 def _getdifflines(iterdiff):
     """return a cleaned up lines"""
     try:
-        # XXX-COMPAT Mercurial 4.1 compat
-        if isinstance(iterdiff, list) and len(iterdiff) == 0:
-            return None
         lines = iterdiff.next()
     except StopIteration:
         return None