reduce whinging from pylint
This commit is contained in:
parent
29c2d3e44d
commit
202a0fd3b2
|
@ -41,17 +41,20 @@ import pwd
|
|||
debug = False
|
||||
|
||||
def dbg (log = ""):
|
||||
"""Print a message if debugging is enabled"""
|
||||
if debug:
|
||||
print >> sys.stderr, log
|
||||
|
||||
def err (log = ""):
|
||||
"""Print an error message"""
|
||||
print >> sys.stderr, log
|
||||
|
||||
class TerminatorConfig:
|
||||
"""This class is used as the base point of the config system"""
|
||||
callback = None
|
||||
sources = []
|
||||
|
||||
def __init__ (self, sources = []):
|
||||
def __init__ (self, sources):
|
||||
for source in sources:
|
||||
if isinstance(source, TerminatorConfValuestore):
|
||||
self.sources.append (source)
|
||||
|
|
|
@ -24,7 +24,7 @@ This list is taken from gnome-terminal's src/encoding.h
|
|||
"""
|
||||
|
||||
class TerminatorEncoding:
|
||||
|
||||
"""Class to store encoding details"""
|
||||
encodings = [
|
||||
[True, None, _("Current Locale")],
|
||||
[False, "ISO-8859-1", _("Western")],
|
||||
|
@ -103,6 +103,7 @@ class TerminatorEncoding:
|
|||
]
|
||||
|
||||
def get_list():
|
||||
"""Return a list of supported encodings"""
|
||||
return TerminatorEncoding.encodings
|
||||
get_list = staticmethod(get_list)
|
||||
|
||||
|
|
Loading…
Reference in New Issue