[cedar-backup-svn] SF.net SVN: cedar-backup:[1022] cedar-backup2/trunk
Brought to you by:
pronovic
|
From: <pro...@us...> - 2011-10-11 23:27:56
|
Revision: 1022
http://cedar-backup.svn.sourceforge.net/cedar-backup/?rev=1022&view=rev
Author: pronovic
Date: 2011-10-11 23:27:49 +0000 (Tue, 11 Oct 2011)
Log Message:
-----------
Update pylint configuration for new version
Modified Paths:
--------------
cedar-backup2/trunk/CedarBackup2/action.py
cedar-backup2/trunk/CedarBackup2/cli.py
cedar-backup2/trunk/CedarBackup2/extend/mysql.py
cedar-backup2/trunk/CedarBackup2/extend/postgresql.py
cedar-backup2/trunk/CedarBackup2/filesystem.py
cedar-backup2/trunk/CedarBackup2/image.py
cedar-backup2/trunk/CedarBackup2/testutil.py
cedar-backup2/trunk/CedarBackup2/util.py
cedar-backup2/trunk/CedarBackup2/writer.py
cedar-backup2/trunk/CedarBackup2/xmlutil.py
cedar-backup2/trunk/pylint-code.rc
cedar-backup2/trunk/pylint-test.rc
cedar-backup2/trunk/setup.py
cedar-backup2/trunk/testcase/utiltests.py
cedar-backup2/trunk/util/createtree.py
cedar-backup2/trunk/util/sorttags.py
Modified: cedar-backup2/trunk/CedarBackup2/action.py
===================================================================
--- cedar-backup2/trunk/CedarBackup2/action.py 2011-10-11 22:44:17 UTC (rev 1021)
+++ cedar-backup2/trunk/CedarBackup2/action.py 2011-10-11 23:27:49 UTC (rev 1022)
@@ -35,7 +35,7 @@
# Imported modules
########################################################################
-# pylint: disable-msg=W0611
+# pylint: disable=W0611
from CedarBackup2.actions.collect import executeCollect
from CedarBackup2.actions.stage import executeStage
from CedarBackup2.actions.store import executeStore
Modified: cedar-backup2/trunk/CedarBackup2/cli.py
===================================================================
--- cedar-backup2/trunk/CedarBackup2/cli.py 2011-10-11 22:44:17 UTC (rev 1021)
+++ cedar-backup2/trunk/CedarBackup2/cli.py 2011-10-11 23:27:49 UTC (rev 1022)
@@ -377,7 +377,7 @@
logger.debug("Calling action function [%s], execution index [%d]" % (name, self.index))
self.function(configPath, options, config)
- def _executeHook(self, type, hook): # pylint: disable-msg=W0622,R0201
+ def _executeHook(self, type, hook): # pylint: disable=W0622,R0201
"""
Executes a hook command via L{util.executeCommand()}.
@param type: String describing the type of hook, for logging.
Modified: cedar-backup2/trunk/CedarBackup2/extend/mysql.py
===================================================================
--- cedar-backup2/trunk/CedarBackup2/extend/mysql.py 2011-10-11 22:44:17 UTC (rev 1021)
+++ cedar-backup2/trunk/CedarBackup2/extend/mysql.py 2011-10-11 23:27:49 UTC (rev 1022)
@@ -129,7 +129,7 @@
@sort: __init__, __repr__, __str__, __cmp__, user, password, all, databases
"""
- def __init__(self, user=None, password=None, compressMode=None, all=None, databases=None): # pylint: disable-msg=W0622
+ def __init__(self, user=None, password=None, compressMode=None, all=None, databases=None): # pylint: disable=W0622
"""
Constructor for the C{MysqlConfig} class.
Modified: cedar-backup2/trunk/CedarBackup2/extend/postgresql.py
===================================================================
--- cedar-backup2/trunk/CedarBackup2/extend/postgresql.py 2011-10-11 22:44:17 UTC (rev 1021)
+++ cedar-backup2/trunk/CedarBackup2/extend/postgresql.py 2011-10-11 23:27:49 UTC (rev 1022)
@@ -120,7 +120,7 @@
@sort: __init__, __repr__, __str__, __cmp__, user, all, databases
"""
- def __init__(self, user=None, compressMode=None, all=None, databases=None): # pylint: disable-msg=W0622
+ def __init__(self, user=None, compressMode=None, all=None, databases=None): # pylint: disable=W0622
"""
Constructor for the C{PostgresqlConfig} class.
Modified: cedar-backup2/trunk/CedarBackup2/filesystem.py
===================================================================
--- cedar-backup2/trunk/CedarBackup2/filesystem.py 2011-10-11 22:44:17 UTC (rev 1021)
+++ cedar-backup2/trunk/CedarBackup2/filesystem.py 2011-10-11 23:27:49 UTC (rev 1022)
@@ -724,7 +724,7 @@
# SpanItem class definition
########################################################################
-class SpanItem(object): # pylint: disable-msg=R0903
+class SpanItem(object): # pylint: disable=R0903
"""
Item returned by L{BackupFileList.generateSpan}.
"""
@@ -745,7 +745,7 @@
# BackupFileList class definition
########################################################################
-class BackupFileList(FilesystemList): # pylint: disable-msg=R0904
+class BackupFileList(FilesystemList): # pylint: disable=R0904
######################
# Class documentation
@@ -911,7 +911,7 @@
@return: ASCII-safe SHA digest for the file.
@raise OSError: If the file cannot be opened.
"""
- # pylint: disable-msg=C0103
+ # pylint: disable=C0103
try:
import hashlib
s = hashlib.sha1()
@@ -1097,7 +1097,7 @@
@raise ValueError: If the path could not be encoded properly.
@raise TarError: If there is a problem creating the tar file
"""
- # pylint: disable-msg=E1101
+ # pylint: disable=E1101
path = encodePath(path)
if len(self) == 0: raise ValueError("Empty list cannot be used to generate tarfile.")
if(mode == 'tar'): tarmode = "w:"
@@ -1228,7 +1228,7 @@
# PurgeItemList class definition
########################################################################
-class PurgeItemList(FilesystemList): # pylint: disable-msg=R0904
+class PurgeItemList(FilesystemList): # pylint: disable=R0904
######################
# Class documentation
Modified: cedar-backup2/trunk/CedarBackup2/image.py
===================================================================
--- cedar-backup2/trunk/CedarBackup2/image.py 2011-10-11 22:44:17 UTC (rev 1021)
+++ cedar-backup2/trunk/CedarBackup2/image.py 2011-10-11 23:27:49 UTC (rev 1022)
@@ -35,5 +35,5 @@
# Imported modules
########################################################################
-from CedarBackup2.writers.util import IsoImage # pylint: disable-msg=W0611
+from CedarBackup2.writers.util import IsoImage # pylint: disable=W0611
Modified: cedar-backup2/trunk/CedarBackup2/testutil.py
===================================================================
--- cedar-backup2/trunk/CedarBackup2/testutil.py 2011-10-11 22:44:17 UTC (rev 1021)
+++ cedar-backup2/trunk/CedarBackup2/testutil.py 2011-10-11 23:27:49 UTC (rev 1022)
@@ -70,7 +70,7 @@
import time
import getpass
import random
-import string # pylint: disable-msg=W0402
+import string # pylint: disable=W0402
import platform
import logging
from StringIO import StringIO
@@ -234,7 +234,7 @@
@param filepath: Path to tarfile to extract.
@raise ValueError: If a path cannot be encoded properly.
"""
- # pylint: disable-msg=E1101
+ # pylint: disable=E1101
tmpdir = encodePath(tmpdir)
filepath = encodePath(filepath)
tar = tarfile.open(filepath)
@@ -366,7 +366,7 @@
missed = False
instead = None
try:
- exec "obj.%s = value" % prop # pylint: disable-msg=W0122
+ exec "obj.%s = value" % prop # pylint: disable=W0122
missed = True
except exception: pass
except Exception, e: instead = e
Modified: cedar-backup2/trunk/CedarBackup2/util.py
===================================================================
--- cedar-backup2/trunk/CedarBackup2/util.py 2011-10-11 22:44:17 UTC (rev 1021)
+++ cedar-backup2/trunk/CedarBackup2/util.py 2011-10-11 23:27:49 UTC (rev 1022)
@@ -83,7 +83,7 @@
import re
import time
import logging
-import string # pylint: disable-msg=W0402
+import string # pylint: disable=W0402
from subprocess import Popen, STDOUT, PIPE
from CedarBackup2.release import VERSION, DATE
@@ -639,7 +639,7 @@
@param other: Other object to compare to.
@return: -1/0/1 depending on whether self is C{<}, C{=} or C{>} other.
"""
- # pylint: disable-msg=W0212
+ # pylint: disable=W0212
if other is None:
return 1
if self.name != other.name:
@@ -803,7 +803,7 @@
def __init__(self):
pass
def __call__(self, *args, **kw):
- # pylint: disable-msg=W0212,R0201
+ # pylint: disable=W0212,R0201
if PathResolverSingleton._instance is None:
obj = PathResolverSingleton()
PathResolverSingleton._instance = obj
@@ -878,7 +878,7 @@
@sort: __init__, __repr__, __str__
"""
- # pylint: disable-msg=R0201
+ # pylint: disable=R0201
def __init__(self):
"""
@@ -988,7 +988,7 @@
try:
if sys.platform.startswith("win"):
windowsPlatforms = [ "Windows 3.1", "Windows 95/98/ME", "Windows NT/2000/XP", "Windows CE", ]
- wininfo = sys.getwindowsversion() # pylint: disable-msg=E1101
+ wininfo = sys.getwindowsversion() # pylint: disable=E1101
winversion = "%d.%d.%d" % (wininfo[0], wininfo[1], wininfo[2])
winplatform = windowsPlatforms[wininfo[3]]
wintext = wininfo[4] # i.e. "Service Pack 2"
Modified: cedar-backup2/trunk/CedarBackup2/writer.py
===================================================================
--- cedar-backup2/trunk/CedarBackup2/writer.py 2011-10-11 22:44:17 UTC (rev 1021)
+++ cedar-backup2/trunk/CedarBackup2/writer.py 2011-10-11 23:27:49 UTC (rev 1022)
@@ -35,7 +35,7 @@
# Imported modules
########################################################################
-# pylint: disable-msg=W0611
+# pylint: disable=W0611
from CedarBackup2.writers.util import validateScsiId, validateDriveSpeed
from CedarBackup2.writers.cdwriter import MediaDefinition, MediaCapacity, CdWriter
from CedarBackup2.writers.cdwriter import MEDIA_CDRW_74, MEDIA_CDR_74, MEDIA_CDRW_80, MEDIA_CDR_80
Modified: cedar-backup2/trunk/CedarBackup2/xmlutil.py
===================================================================
--- cedar-backup2/trunk/CedarBackup2/xmlutil.py 2011-10-11 22:44:17 UTC (rev 1021)
+++ cedar-backup2/trunk/CedarBackup2/xmlutil.py 2011-10-11 23:27:49 UTC (rev 1022)
@@ -58,7 +58,7 @@
@author: Kenneth J. Pronovici <pro...@ie...>
"""
-# pylint: disable-msg=C0111,C0103,W0511,W0104
+# pylint: disable=C0111,C0103,W0511,W0104
########################################################################
# Imported modules
Modified: cedar-backup2/trunk/pylint-code.rc
===================================================================
--- cedar-backup2/trunk/pylint-code.rc 2011-10-11 22:44:17 UTC (rev 1021)
+++ cedar-backup2/trunk/pylint-code.rc 2011-10-11 23:27:49 UTC (rev 1022)
@@ -70,7 +70,7 @@
#enable-msg=
# Disable the message(s) with the given id(s).
-disable-msg=I0011,W0702,W0703,W0704,C0302,C0321,R0902,R0911,R0912,R0913,R0914,R0915
+disable=I0011,W0702,W0703,W0704,C0302,C0321,R0902,R0911,R0912,R0913,R0914,R0915
[REPORTS]
Modified: cedar-backup2/trunk/pylint-test.rc
===================================================================
--- cedar-backup2/trunk/pylint-test.rc 2011-10-11 22:44:17 UTC (rev 1021)
+++ cedar-backup2/trunk/pylint-test.rc 2011-10-11 23:27:49 UTC (rev 1022)
@@ -73,7 +73,7 @@
#enable-msg=
# Disable the message(s) with the given id(s).
-disable-msg=I0011,W0212,W0702,W0703,W0704,C0302,C0301,C0321,C0111,R0201,R0902,R0904,R0911,R0912,R0913,R0914,R0915
+disable=I0011,W0212,W0702,W0703,W0704,C0302,C0301,C0321,C0111,R0201,R0902,R0904,R0911,R0912,R0913,R0914,R0915
[REPORTS]
Modified: cedar-backup2/trunk/setup.py
===================================================================
--- cedar-backup2/trunk/setup.py 2011-10-11 22:44:17 UTC (rev 1021)
+++ cedar-backup2/trunk/setup.py 2011-10-11 23:27:49 UTC (rev 1022)
@@ -17,7 +17,7 @@
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
-# pylint: disable-msg=C0111
+# pylint: disable=C0111
########################################################################
# Imported modules
Modified: cedar-backup2/trunk/testcase/utiltests.py
===================================================================
--- cedar-backup2/trunk/testcase/utiltests.py 2011-10-11 22:44:17 UTC (rev 1021)
+++ cedar-backup2/trunk/testcase/utiltests.py 2011-10-11 23:27:49 UTC (rev 1022)
@@ -32,7 +32,7 @@
# Purpose : Tests utility functionality.
#
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
-# pylint: disable-msg=C0322,C0324
+# pylint: disable=C0322,C0324
########################################################################
# Module documentation
@@ -2057,7 +2057,7 @@
"""
Test the locale attribute.
"""
- # pylint: disable-msg=W0104
+ # pylint: disable=W0104
diagnostics = Diagnostics()
diagnostics.locale # might not be set, so just make sure method doesn't fail
Modified: cedar-backup2/trunk/util/createtree.py
===================================================================
--- cedar-backup2/trunk/util/createtree.py 2011-10-11 22:44:17 UTC (rev 1021)
+++ cedar-backup2/trunk/util/createtree.py 2011-10-11 23:27:49 UTC (rev 1022)
@@ -99,7 +99,7 @@
import sys
import os
-import string # pylint: disable-msg=W0402
+import string # pylint: disable=W0402
import random
from ConfigParser import SafeConfigParser
Modified: cedar-backup2/trunk/util/sorttags.py
===================================================================
--- cedar-backup2/trunk/util/sorttags.py 2011-10-11 22:44:17 UTC (rev 1021)
+++ cedar-backup2/trunk/util/sorttags.py 2011-10-11 23:27:49 UTC (rev 1022)
@@ -2,7 +2,7 @@
# Sort the output of 'svn list --verbose' on a tags directory, by version
# The output is assumed to be piped in.
-# pylint: disable-msg=C0111,C0103
+# pylint: disable=C0111,C0103
import sys
import re
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|