diff options
author | Rob Austein <sra@hactrn.net> | 2012-10-18 23:53:23 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2012-10-18 23:53:23 +0000 |
commit | c4be735c645bdbcb86b2448899a3aa664d5e97df (patch) | |
tree | ebaa086e7376be3a512eab0fccce05494ef602a5 /buildtools | |
parent | 5897dfa4261927dafabc3ed6c16f27aa932efc42 (diff) |
pylint
svn path=/branches/tk274/; revision=4786
Diffstat (limited to 'buildtools')
-rw-r--r-- | buildtools/make-relaxng.py | 4 | ||||
-rw-r--r-- | buildtools/make-sql-schemas.py | 2 | ||||
-rw-r--r-- | buildtools/pylint.rc | 14 |
3 files changed, 16 insertions, 4 deletions
diff --git a/buildtools/make-relaxng.py b/buildtools/make-relaxng.py index 0058ade5..d35f56bc 100644 --- a/buildtools/make-relaxng.py +++ b/buildtools/make-relaxng.py @@ -3,7 +3,7 @@ Script to generate rpki/relaxng.py. $Id$ -Copyright (C) 2009-2011 Internet Systems Consortium ("ISC") +Copyright (C) 2009-2012 Internet Systems Consortium ("ISC") Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -43,7 +43,7 @@ import lxml.etree format_2 = """\ ## @var %(name)s ## Parsed RelaxNG %(name)s schema -%(name)s = lxml.etree.RelaxNG(lxml.etree.fromstring('''%(rng)s''')) +%(name)s = lxml.etree.RelaxNG(lxml.etree.fromstring(r'''%(rng)s''')) """ def filename_to_symbol(s): diff --git a/buildtools/make-sql-schemas.py b/buildtools/make-sql-schemas.py index 3ecde014..8175bbf5 100644 --- a/buildtools/make-sql-schemas.py +++ b/buildtools/make-sql-schemas.py @@ -3,7 +3,7 @@ Script to generate rpki/relaxng.py. $Id$ -Copyright (C) 2009-2011 Internet Systems Consortium ("ISC") +Copyright (C) 2009-2012 Internet Systems Consortium ("ISC") Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above diff --git a/buildtools/pylint.rc b/buildtools/pylint.rc index 5e555f45..872345fb 100644 --- a/buildtools/pylint.rc +++ b/buildtools/pylint.rc @@ -4,6 +4,18 @@ # differs enough from mine that it's not really usable without # customization. Useful options: --help, --generate-rcfile. +# Note that, in addition to disabling unhelpful messages globally, one +# can disable specific messages for an entire module or for a specific +# known issue, using magic comments in the Python source code. Form +# of the comment is the same in either case, how much it controls +# depends on the scope in which one places the comment. Format: +# +# # pylint: disable=code,code,... +# +# At top level in a module (eg, right before first import), it +# disables for a module. Within blocks (eg, as a comment on the line +# defining formal parameters to a function) it only in that scope. + [MASTER] profile=no @@ -32,7 +44,7 @@ disable-msg-cat= #enable-msg= # Disable the message(s) with the given id(s). -disable-msg=R0801,R0903,R0913,C0321,R0904,W0201,E1101,W0614,C0301,R0901,C0302,R0902,R0201,W0613,R0912,R0915,W0703,W0212,R0914,W0603 +disable=R0801,R0903,R0913,C0321,R0904,W0201,E1101,W0614,C0301,R0901,C0302,R0902,R0201,W0613,R0912,R0915,W0703,W0212,R0914,W0603,W0142,I0011,C0111,C0103,R0401 [REPORTS] |