pylint option update
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 14 Oct 2010 10:15:38 +0200
changeset 6491 ee9a10b6620e
parent 6490 34359fbde6ef
child 6492 47a284c0d012
pylint option update
__pkginfo__.py
_exceptions.py
common/mail.py
common/mixins.py
common/mttransforms.py
common/tags.py
common/uilib.py
devtools/dataimport.py
etwist/twctl.py
server/repository.py
server/sources/rql2sql.py
setup.py
test/data/cubes/comment/__pkginfo__.py
test/data/cubes/email/__pkginfo__.py
test/data/cubes/file/__pkginfo__.py
test/data/cubes/forge/__pkginfo__.py
uilib.py
web/_exceptions.py
--- a/__pkginfo__.py	Thu Oct 14 10:08:00 2010 +0200
+++ b/__pkginfo__.py	Thu Oct 14 10:15:38 2010 +0200
@@ -1,4 +1,4 @@
-# pylint: disable-msg=W0622,C0103
+# pylint: disable=W0622,C0103
 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
--- a/_exceptions.py	Thu Oct 14 10:08:00 2010 +0200
+++ b/_exceptions.py	Thu Oct 14 10:15:38 2010 +0200
@@ -159,5 +159,5 @@
 class ExecutionError(Exception):
     """server execution control error (already started, not running...)"""
 
-# pylint: disable-msg=W0611
+# pylint: disable=W0611
 from logilab.common.clcommands import BadCommandUsage
--- a/common/mail.py	Thu Oct 14 10:08:00 2010 +0200
+++ b/common/mail.py	Thu Oct 14 10:15:38 2010 +0200
@@ -16,7 +16,7 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """pre 3.6 bw compat"""
-# pylint: disable-msg=W0614,W0401
+# pylint: disable=W0614,W0401
 from warnings import warn
 warn('moved to cubicweb.mail', DeprecationWarning, stacklevel=2)
 from cubicweb.mail import *
--- a/common/mixins.py	Thu Oct 14 10:08:00 2010 +0200
+++ b/common/mixins.py	Thu Oct 14 10:15:38 2010 +0200
@@ -16,7 +16,7 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """pre 3.6 bw compat"""
-# pylint: disable-msg=W0614,W0401
+# pylint: disable=W0614,W0401
 from warnings import warn
 warn('moved to cubicweb.mixins', DeprecationWarning, stacklevel=2)
 from cubicweb.mixins import *
--- a/common/mttransforms.py	Thu Oct 14 10:08:00 2010 +0200
+++ b/common/mttransforms.py	Thu Oct 14 10:15:38 2010 +0200
@@ -16,7 +16,7 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """pre 3.6 bw compat"""
-# pylint: disable-msg=W0614,W0401
+# pylint: disable=W0614,W0401
 from warnings import warn
 warn('moved to cubicweb.mttransforms', DeprecationWarning, stacklevel=2)
 from cubicweb.mttransforms import *
--- a/common/tags.py	Thu Oct 14 10:08:00 2010 +0200
+++ b/common/tags.py	Thu Oct 14 10:15:38 2010 +0200
@@ -16,7 +16,7 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """pre 3.6 bw compat"""
-# pylint: disable-msg=W0614,W0401
+# pylint: disable=W0614,W0401
 from warnings import warn
 warn('moved to cubicweb.tags', DeprecationWarning, stacklevel=2)
 from cubicweb.tags import *
--- a/common/uilib.py	Thu Oct 14 10:08:00 2010 +0200
+++ b/common/uilib.py	Thu Oct 14 10:15:38 2010 +0200
@@ -16,7 +16,7 @@
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """pre 3.6 bw compat"""
-# pylint: disable-msg=W0614,W0401
+# pylint: disable=W0614,W0401
 from warnings import warn
 warn('moved to cubicweb.uilib', DeprecationWarning, stacklevel=2)
 from cubicweb.uilib import *
--- a/devtools/dataimport.py	Thu Oct 14 10:08:00 2010 +0200
+++ b/devtools/dataimport.py	Thu Oct 14 10:15:38 2010 +0200
@@ -1,4 +1,4 @@
-# pylint: disable-msg=W0614,W0401
+# pylint: disable=W0614,W0401
 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
--- a/etwist/twctl.py	Thu Oct 14 10:08:00 2010 +0200
+++ b/etwist/twctl.py	Thu Oct 14 10:15:38 2010 +0200
@@ -21,7 +21,7 @@
 from cubicweb.web.webctl import WebCreateHandler
 
 # trigger configuration registration
-import cubicweb.etwist.twconfig # pylint: disable-msg=W0611
+import cubicweb.etwist.twconfig # pylint: disable=W0611
 
 class TWCreateHandler(WebCreateHandler):
     cfgname = 'twisted'
--- a/server/repository.py	Thu Oct 14 10:08:00 2010 +0200
+++ b/server/repository.py	Thu Oct 14 10:15:38 2010 +0200
@@ -467,7 +467,7 @@
         rset = session.execute(rql, {'x': eid})
         assert len(rset) == 1, rset
         cwuser = rset.get_entity(0, 0)
-        # pylint: disable-msg=W0104
+        # pylint: disable=W0104
         # prefetch / cache cwuser's groups and properties. This is especially
         # useful for internal sessions to avoid security insertions
         cwuser.groups
--- a/server/sources/rql2sql.py	Thu Oct 14 10:08:00 2010 +0200
+++ b/server/sources/rql2sql.py	Thu Oct 14 10:15:38 2010 +0200
@@ -508,7 +508,7 @@
                 select.need_distinct = True
         return self.__union_sql(union, needalias)
 
-    def union_sql(self, union, needalias=False): # pylint: disable-msg=E0202
+    def union_sql(self, union, needalias=False): # pylint: disable=E0202
         if len(union.children) == 1:
             return self.select_sql(union.children[0], needalias)
         sqls = ('(%s)' % self.select_sql(select, needalias)
--- a/setup.py	Thu Oct 14 10:08:00 2010 +0200
+++ b/setup.py	Thu Oct 14 10:15:38 2010 +0200
@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# pylint: disable-msg=W0142,W0403,W0404,W0613,W0622,W0622,W0704,R0904,C0103,E0611
+# pylint: disable=W0142,W0403,W0404,W0613,W0622,W0622,W0704,R0904,C0103,E0611
 #
 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
--- a/test/data/cubes/comment/__pkginfo__.py	Thu Oct 14 10:08:00 2010 +0200
+++ b/test/data/cubes/comment/__pkginfo__.py	Thu Oct 14 10:15:38 2010 +0200
@@ -1,4 +1,4 @@
-# pylint: disable-msg=W0622
+# pylint: disable=W0622
 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
--- a/test/data/cubes/email/__pkginfo__.py	Thu Oct 14 10:08:00 2010 +0200
+++ b/test/data/cubes/email/__pkginfo__.py	Thu Oct 14 10:15:38 2010 +0200
@@ -1,4 +1,4 @@
-# pylint: disable-msg=W0622
+# pylint: disable=W0622
 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
--- a/test/data/cubes/file/__pkginfo__.py	Thu Oct 14 10:08:00 2010 +0200
+++ b/test/data/cubes/file/__pkginfo__.py	Thu Oct 14 10:15:38 2010 +0200
@@ -1,4 +1,4 @@
-# pylint: disable-msg=W0622
+# pylint: disable=W0622
 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
--- a/test/data/cubes/forge/__pkginfo__.py	Thu Oct 14 10:08:00 2010 +0200
+++ b/test/data/cubes/forge/__pkginfo__.py	Thu Oct 14 10:15:38 2010 +0200
@@ -1,4 +1,4 @@
-# pylint: disable-msg=W0622
+# pylint: disable=W0622
 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
--- a/uilib.py	Thu Oct 14 10:08:00 2010 +0200
+++ b/uilib.py	Thu Oct 14 10:15:38 2010 +0200
@@ -81,7 +81,7 @@
 # text publishing #############################################################
 
 try:
-    from cubicweb.ext.rest import rest_publish # pylint: disable-msg=W0611
+    from cubicweb.ext.rest import rest_publish # pylint: disable=W0611
 except ImportError:
     def rest_publish(entity, data):
         """default behaviour if docutils was not found"""
--- a/web/_exceptions.py	Thu Oct 14 10:08:00 2010 +0200
+++ b/web/_exceptions.py	Thu Oct 14 10:15:38 2010 +0200
@@ -1,4 +1,4 @@
-# pylint: disable-msg=W0401,W0614
+# pylint: disable=W0401,W0614
 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #