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