[rhel6-branch 15/30] object's __new__ method takes only one parameter.

mulkieran installerbot-noreply at redhat.com
Thu May 28 21:04:20 UTC 2015


From: Anne Mulhern <amulhern at redhat.com>

Signed-off-by: Anne Mulhern <amulhern at redhat.com>
---
 blivet/util.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/blivet/util.py b/blivet/util.py
index 5c13858..73f2edc 100644
--- a/blivet/util.py
+++ b/blivet/util.py
@@ -373,7 +373,8 @@ class ObjectID(object):
     _newid_gen = functools.partial(next, itertools.count())
 
     def __new__(cls, *args, **kwargs):
-        self = super(ObjectID, cls).__new__(cls, *args, **kwargs)
+        # pylint: disable=unused-argument
+        self = super(ObjectID, cls).__new__(cls)
         self.id = self._newid_gen() # pylint: disable=attribute-defined-outside-init
         return self
 


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/ff1a1624d8f33b3cdd0a36e1bbaa2b816a8a617c


More information about the anaconda-patches mailing list