Address errors, improvements, formatting
- Removed unused code not portable due to buffer() use - raw_input() does not exist in Python 3 - Fixed octal constant syntax for Python 3 - Fixed TypeError - Replace if not exists: makedirs(path) with single call: using makedirs(path, exist_ok=True) - Class inherits from object, can be safely removed from bases in python3: pylint's useless-object-inheritance (W0235) check Signed-off-by: JoeLametta <JoeLametta@users.noreply.github.com>
This commit is contained in:
4
whipper/extern/task/task.py
vendored
4
whipper/extern/task/task.py
vendored
@@ -68,7 +68,7 @@ def _getExceptionMessage(exception, frame=-1, filename=None):
|
||||
% locals()
|
||||
|
||||
|
||||
class LogStub(object):
|
||||
class LogStub:
|
||||
"""
|
||||
I am a stub for a log interface.
|
||||
"""
|
||||
@@ -243,7 +243,7 @@ class Task(LogStub):
|
||||
|
||||
|
||||
# FIXME: should this become a real interface, like in zope ?
|
||||
class ITaskListener(object):
|
||||
class ITaskListener:
|
||||
"""
|
||||
I am an interface for objects listening to tasks.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user