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

login
register
mail settings
Submitter Simon Heimberg
Date Jan. 7, 2014, 9:31 p.m.
Message ID <c9c1f06e53c0af7aeb5c.1389130279@lapsi.heimberg.home>
Download mbox | patch
Permalink /patch/3275/
State Superseded
Commit 60c4d76b79b5343e7322ed0968870bc6c9f7e2e0
Headers show

Comments

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

Use the work-around suggested by the rule instead

Patch

diff -r 661afe245eee -r c9c1f06e53c0 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))