commit: 6c2de744bc8eb511c937c7735d144bd5d40063ed
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 6 03:42:11 2015 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Tue Oct 6 03:42:11 2015 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=6c2de744
lint: stop using old-style classes
Everyone has moved away from these in the python world.
catalyst/builder.py | 2 +-
catalyst/config.py | 2 +-
catalyst/lock.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/catalyst/builder.py b/catalyst/builder.py
index ad27d78..3ba86c8 100644
--- a/catalyst/builder.py
+++ b/catalyst/builder.py
@@ -1,5 +1,5 @@
-class generic:
+class generic(object):
def __init__(self,myspec):
self.settings=myspec
diff --git a/catalyst/config.py b/catalyst/config.py
index 5d74dce..48d9c12 100644
--- a/catalyst/config.py
+++ b/catalyst/config.py
@@ -2,7 +2,7 @@
import re
from catalyst.support import CatalystError
-class ParserBase:
+class ParserBase(object):
filename = ""
lines = None
diff --git a/catalyst/lock.py b/catalyst/lock.py
index 9f954eb..c031258 100644
--- a/catalyst/lock.py
+++ b/catalyst/lock.py
@@ -24,7 +24,7 @@ class LockInUse(Exception):
print
-class LockDir:
+class LockDir(object):
locking_method=fcntl.flock
lock_dirs_in_use=[]
die_on_failed_lock=True