improve pylint compliance of util
This commit is contained in:
parent
034e264fe5
commit
dee9745d99
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/python
|
||||
# TerminatorConfig - layered config classes
|
||||
# Terminator.util - misc utility functions
|
||||
# Copyright (C) 2006-2008 cmsj@tenshu.net
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
|
@ -14,17 +14,18 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
"""Terminator.util - misc utility functions"""
|
||||
|
||||
import sys
|
||||
|
||||
# set this to true to enable debugging output
|
||||
debug = False
|
||||
DEBUG = False
|
||||
|
||||
def dbg (log = ""):
|
||||
"""Print a message if debugging is enabled"""
|
||||
if debug:
|
||||
print >> sys.stderr, 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
|
||||
"""Print an error message"""
|
||||
print >> sys.stderr, log
|
||||
|
|
Loading…
Reference in New Issue