improve pylint compliance of util

This commit is contained in:
Chris Jones 2009-08-10 00:10:08 +01:00
parent 034e264fe5
commit dee9745d99
1 changed files with 8 additions and 7 deletions

View File

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