diff --git a/terminatorlib/util.py b/terminatorlib/util.py index 5031e750..576b1ad3 100755 --- a/terminatorlib/util.py +++ b/terminatorlib/util.py @@ -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