Patchwork [3,of,6,V2] cleanup: Remove the only ever used skip-check-code pragma

login
register
mail settings
Submitter Simon Heimberg
Date Jan. 9, 2014, 2:52 p.m.
Message ID <a48899b6ab2b0e037683.1389279155@lapsi.heimberg.home>
Download mbox | patch
Permalink /patch/3286/
State Accepted
Commit 60c4d76b79b5343e7322ed0968870bc6c9f7e2e0
Headers show

Comments

Simon Heimberg - Jan. 9, 2014, 2:52 p.m.
# HG changeset patch
# User Simon Heimberg <simohe@besonet.ch>
# Date 1389130179 -3600
#      Tue Jan 07 22:29:39 2014 +0100
# Node ID a48899b6ab2b0e03768344cdf323a318ab5596ee
# Parent  0f125811e07ef14d100f82db48ff8ecb556a6279
cleanup: Remove the only ever used skip-check-code pragma

Use the work-around suggested by the rule instead

Patch

diff -r 0f125811e07e -r a48899b6ab2b hgext/keyword.py
--- a/hgext/keyword.py	Tue Jan 07 22:29:15 2014 +0100
+++ b/hgext/keyword.py	Tue Jan 07 22:29:39 2014 +0100
@@ -448,7 +448,7 @@ 
         if name.split('.', 1)[0].find('commit') > -1:
             repo.ui.setconfig('hooks', name, '')
     msg = _('hg keyword configuration and expansion example')
-    ui.note("hg ci -m '%s'\n" % msg) # check-code-ignore
+    ui.note(("hg ci -m '%s'\n" % msg))
     repo.commit(text=msg)
     ui.status(_('\n\tkeywords expanded\n'))
     ui.write(repo.wread(fn))