changeset 1947:3458aa1027e6

patch: remove version compatibility check We don't support anything under 3.7.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 30 Mar 2016 22:04:25 -0700
parents 72246b13bd72
children 54810b543bf4
files hgext3rd/topic/__init__.py
diffstat 1 files changed, 5 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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)