patch: remove version compatibility check
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 30 Mar 2016 22:04:25 -0700
changeset 1947 3458aa1027e6
parent 1946 72246b13bd72
child 1948 54810b543bf4
patch: remove version compatibility check We don't support anything under 3.7.
hgext3rd/topic/__init__.py
--- a/hgext3rd/topic/__init__.py	Wed Mar 30 22:03:44 2016 -0700
+++ b/hgext3rd/topic/__init__.py	Wed Mar 30 22:04:25 2016 -0700
@@ -347,14 +347,11 @@
     if 'topic' in patchdata:
         extra['topic'] = patchdata['topic']
 
-if util.safehasattr(cmdutil, 'extraexport'):
-    cmdutil.extraexport.append('topic')
-    cmdutil.extraexportmap['topic'] = _exporttopic
-if util.safehasattr(cmdutil, 'extrapreimport'):
-    cmdutil.extrapreimport.append('topic')
-    cmdutil.extrapreimportmap['topic'] = _importtopic
-if util.safehasattr(patch, 'patchheadermap'):
-    patch.patchheadermap.append(('EXP-Topic', 'topic'))
+cmdutil.extraexport.append('topic')
+cmdutil.extraexportmap['topic'] = _exporttopic
+cmdutil.extrapreimport.append('topic')
+cmdutil.extrapreimportmap['topic'] = _importtopic
+patch.patchheadermap.append(('EXP-Topic', 'topic'))
 
 extensions.afterloaded('rebase', _fixrebase)