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,15 +14,16 @@
|
|||
# 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:
|
||||
if DEBUG:
|
||||
print >> sys.stderr, log
|
||||
|
||||
def err (log = ""):
|
||||
|
|
Loading…
Reference in New Issue