Sylvain Thénault avatar Sylvain Thénault committed 27930e5

fix grammatical error for W0332 message. Closes #100654

Comments (0)

Files changed (4)

 ====================
 
 --
-    * #100707: check for boolop being used as exception class, introducing 
+    * #100707: check for boolop being used as exception class, introducing
       new W0711 message (patch by Tim Hatch)
 
+    * #100654: fix grammatical error for W0332 message (using 'l' as
+      long int identifier)
+
     * fix cross-interpreter issue (non compatible access to __builtins__)
 
     * stop including tests files in distribution, they causes crash when
       installed with python3 (#72022, #82417, #76910)
 
+
 2012-07-17  --  0.25.2
     * #93591: Correctly emit warnings about clobbered variable names when an
       except handler contains a tuple of names instead of a single name.

checkers/format.py

 # Copyright (c) 2003-2010 Sylvain Thenault (thenault@gmail.com).
-# Copyright (c) 2003-2010 LOGILAB S.A. (Paris, FRANCE).
+# Copyright (c) 2003-2012 LOGILAB S.A. (Paris, FRANCE).
 # This program is free software; you can redistribute it and/or modify it under
 # the terms of the GNU General Public License as published by the Free Software
 # Foundation; either version 2 of the License, or (at your option) any later
     'W0331': ('Use of the <> operator',
               'Used when the deprecated "<>" operator is used instead \
               of "!=".'),
-    'W0332': ('Use l as long integer identifier',
+    'W0332': ('Use of "l" as long integer identifier',
               'Used when a lower case "l" is used to mark a long integer. You '
               'should use a upper case "L" since the letter "l" looks too much '
               'like the digit "1"'),
   Used when there are some mixed tabs and spaces in a module.
 :W0331: *Use of the <> operator*
   Used when the deprecated "<>" operator is used instead of "!=".
-:W0332: *Use l as long integer identifier*
+:W0332: *Use of "l" as long integer identifier*
   Used when a lower case "l" is used to mark a long integer. You should use a
   upper case "L" since the letter "l" looks too much like the digit "1"
 :W0333: *Use of the `` operator*

test/messages/func_w0332_py_30.txt

-W:  4: Use l as long integer identifier
+W:  4: Use of l as long integer identifier
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.