backend/common/fileutils.py | 1 +
backend/common/rhn_mpm.py | 1 +
rel-eng/packages/spacewalk-pylint | 2 +-
spacewalk/pylint/spacewalk-pylint.rc | 3 ++-
spacewalk/pylint/spacewalk-pylint.spec | 5 ++++-
5 files changed, 9 insertions(+), 3 deletions(-)
New commits:
commit cdad7348e19452fb1ab79b215e17b786612330fa
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Fri Jan 25 11:52:49 2013 +0100
Automatic commit of package [spacewalk-pylint] release [0.10-1].
diff --git a/rel-eng/packages/spacewalk-pylint b/rel-eng/packages/spacewalk-pylint
index 8eede52..8d79759 100644
--- a/rel-eng/packages/spacewalk-pylint
+++ b/rel-eng/packages/spacewalk-pylint
@@ -1 +1 @@
-0.9-1 spacewalk/pylint/
+0.10-1 spacewalk/pylint/
diff --git a/spacewalk/pylint/spacewalk-pylint.spec b/spacewalk/pylint/spacewalk-pylint.spec
index 8031ce5..99e6721 100644
--- a/spacewalk/pylint/spacewalk-pylint.spec
+++ b/spacewalk/pylint/spacewalk-pylint.spec
@@ -1,5 +1,5 @@
Name: spacewalk-pylint
-Version: 0.9
+Version: 0.10
Release: 1%{?dist}
Summary: Pylint configuration for spacewalk python packages
@@ -49,6 +49,9 @@ rm -rf %{buildroot}
%doc LICENSE
%changelog
+* Fri Jan 25 2013 Michael Mraka <michael.mraka(a)redhat.com> 0.10-1
+- ignore Container implementation related warnings
+
* Sun Nov 11 2012 Michael Calmer <mc(a)suse.de> 0.9-1
- BuildRequire docbook-style-xsl only on redhat
commit f896639d71daf786a3fb85eb0a1bf0a0b00334df
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Fri Jan 25 11:50:33 2013 +0100
silence warning about "\0" string
we really want to write binary zero here...
diff --git a/backend/common/rhn_mpm.py b/backend/common/rhn_mpm.py
index fdbea4f..85fdad2 100644
--- a/backend/common/rhn_mpm.py
+++ b/backend/common/rhn_mpm.py
@@ -221,6 +221,7 @@ class MPM_Package(A_Package):
self._encode_header(output_stream)
self._encode_payload(output_stream)
+ # pylint: disable=W1401
# now we know header and payload size so rewind back and write lead
lead_arr = (self._magic, 1, "\0" * 3, self.header_flags,
self.payload_flags, self.header_size, self.payload_size, '\0' * 92)
commit 0edfc1579efbdb8cf6a19a99339368a17d931aa8
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Fri Jan 25 11:47:24 2013 +0100
disable false positive warnings
fixing
E1101:175,4:rhn_popen: Instance of 'Popen' has no 'stdin' member
E1101:182,20:rhn_popen: Instance of 'Popen' has no 'stdout' member
E1101:182,43:rhn_popen: Instance of 'Popen' has no 'stderr' member
E1101:188,17:rhn_popen: Instance of 'Popen' has no 'poll' member
diff --git a/backend/common/fileutils.py b/backend/common/fileutils.py
index 155011a..2c27e4b 100644
--- a/backend/common/fileutils.py
+++ b/backend/common/fileutils.py
@@ -167,6 +167,7 @@ def rhn_popen(cmd, progressCallback=None, bufferSize=16384, outputLog=None):
cmd_is_list = type(cmd) in (types.ListType, types.TupleType)
if cmd_is_list:
cmd = map(str, cmd)
+ # pylint: disable=E1101
c = subprocess.Popen(cmd, bufsize=0, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
close_fds=True, shell=(not cmd_is_list))
commit be79446123458962242fa8fa51e62fdce9d96365
Author: Michael Mraka <michael.mraka(a)redhat.com>
Date: Fri Jan 25 11:46:46 2013 +0100
ignore Container implementation related warnings
diff --git a/spacewalk/pylint/spacewalk-pylint.rc b/spacewalk/pylint/spacewalk-pylint.rc
index 990c8e6..7671412 100644
--- a/spacewalk/pylint/spacewalk-pylint.rc
+++ b/spacewalk/pylint/spacewalk-pylint.rc
@@ -12,7 +12,7 @@ persistent=no
[MESSAGES CONTROL]
# Disable the message(s) with the given id(s).
-disable=I0011,C0302,C0111,R0801,R0902,R0904,R0912,R0913,R0914,R0915,W0142,W0403,W0603
+disable=I0011,C0302,C0111,R0801,R0902,R0904,R0912,R0913,R0914,R0915,R0924,W0142,W0403,W0603
# list of disabled messages:
#I0011: 62: Locally disabling R0201
@@ -23,6 +23,7 @@ disable=I0011,C0302,C0111,R0801,R0902,R0904,R0912,R0913,R0914,R0915,W0142,W0403,
#R0912:171:set_slots_from_cert: Too many branches (59/20)
#R0913:101:GETServer.__init__: Too many arguments (11/10)
#R0914:171:set_slots_from_cert: Too many local variables (38/20)
+#R0924: 30,0:deb_Header: Badly implemented Container, implements __getitem__ but not __delitem__, __len__, __setitem__
#R0915:171:set_slots_from_cert: Too many statements (169/50)
#W0142:228:MPM_Package.write: Used * or ** magic
#W0403: 28: Relative import 'rhnLog', should be 'backend.common.rhnLog'