# HG changeset patch # User Pierre-Yves David # Date 1459400665 25200 # Node ID 3458aa1027e6744bfc651f3e9beaee9cb07caec7 # Parent 72246b13bd720a26e498fd91ef4556683dcf32b9 patch: remove version compatibility check We don't support anything under 3.7. diff -r 72246b13bd72 -r 3458aa1027e6 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)