diff options
author | cpopa <devnull@localhost> | 2014-07-24 10:59:08 +0200 |
---|---|---|
committer | cpopa <devnull@localhost> | 2014-07-24 10:59:08 +0200 |
commit | 1d6e80b96d9711634f042e5b5e9890b0998b0334 (patch) | |
tree | 51222ad4f8c08e3009e97684420410dd3b701a21 | |
parent | bde3d6d53a4a66dcc1172a38fde3f3ae3a63b204 (diff) | |
download | pylint-1d6e80b96d9711634f042e5b5e9890b0998b0334.tar.gz |
Restore compatibility with Python 2.6.
-rw-r--r-- | checkers/strings.py | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/checkers/strings.py b/checkers/strings.py index ad63580..af2ceea 100644 --- a/checkers/strings.py +++ b/checkers/strings.py @@ -76,32 +76,38 @@ MSGS = { 'W1302': ("Invalid format string", "bad-format-string", - "Used when a PEP 3101 format string is invalid."), + "Used when a PEP 3101 format string is invalid.", + {'minversion': (2, 7)}), 'W1303': ("Missing keyword argument %r for format string", "missing-format-argument-key", "Used when a PEP 3101 format string that uses named fields " - "doesn't receive one or more required keywords."), + "doesn't receive one or more required keywords.", + {'minversion': (2, 7)}), 'W1304': ("Unused format argument %r", "unused-format-string-argument", "Used when a PEP 3101 format string that uses named " "fields is used with an argument that " - "is not required by the format string."), + "is not required by the format string.", + {'minversion': (2, 7)}), 'W1305': ("Format string contains both automatic field numbering " "and manual field specification", "format-combined-specification", "Usen when a PEP 3101 format string contains both automatic " "field numbering (e.g. '{}') and manual field " - "specification (e.g. '{0}')."), + "specification (e.g. '{0}').", + {'minversion': (2, 7)}), 'W1306': ("Missing format attribute %r in format specifier %r", "missing-format-attribute", "Used when a PEP 3101 format string uses an " "attribute specifier ({0.length}), but the argument " - "passed for formatting doesn't have that attribute."), + "passed for formatting doesn't have that attribute.", + {'minversion': (2, 7)}), 'W1307': ("Using invalid lookup key %r in format specifier %r", "invalid-format-index", "Used when a PEP 3101 format string uses a lookup specifier " "({a[1]}), but the argument passed for formatting " - "doesn't contain or doesn't have that key as an attribute.") + "doesn't contain or doesn't have that key as an attribute.", + {'minversion': (2, 7)}) } OTHER_NODES = (astroid.Const, astroid.List, astroid.Backquote, |