From dee9745d99b9604deb691826621b660b2c8d6e9e Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Mon, 10 Aug 2009 00:10:08 +0100 Subject: [PATCH] improve pylint compliance of util --- terminatorlib/util.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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