diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-04-11 14:21:58 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-04-11 14:21:58 +0000 |
commit | 0291cd85682f76ad768a406b1da1f46a38f9d867 (patch) | |
tree | c3a8404ea149b7a02cf134c468f583d2aa9355f9 /src/sbin | |
parent | 554a954c7c83207761f77cb691ed5fcb0354ef7f (diff) | |
download | bcfg2-0291cd85682f76ad768a406b1da1f46a38f9d867.tar.gz bcfg2-0291cd85682f76ad768a406b1da1f46a38f9d867.tar.bz2 bcfg2-0291cd85682f76ad768a406b1da1f46a38f9d867.zip |
pylint fixes
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1833 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin')
-rwxr-xr-x | src/sbin/GenerateHostInfo | 2 | ||||
-rwxr-xr-x | src/sbin/StatReports | 2 | ||||
-rwxr-xr-x | src/sbin/bcfg2-info | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/sbin/GenerateHostInfo b/src/sbin/GenerateHostInfo index 67521d628..c9723eb0b 100755 --- a/src/sbin/GenerateHostInfo +++ b/src/sbin/GenerateHostInfo @@ -6,7 +6,7 @@ __revision__ = '$Revision$' from ConfigParser import ConfigParser -from lxml.etree import Element, SubElement, parse, tostring +from lxml.etree import parse, tostring from os import fork, execl, dup2, wait, uname import sys diff --git a/src/sbin/StatReports b/src/sbin/StatReports index cb74eb4bb..82a588470 100755 --- a/src/sbin/StatReports +++ b/src/sbin/StatReports @@ -9,7 +9,7 @@ __revision__ = '$Revision$' from ConfigParser import ConfigParser, NoSectionError, NoOptionError from lxml.etree import XML, XSLT, parse, Element, ElementTree, SubElement, tostring, XMLSyntaxError -from time import asctime, strptime, time +from time import asctime, strptime from socket import getfqdn from sys import argv from getopt import getopt, GetoptError diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info index c95a76a44..75e48aa2c 100755 --- a/src/sbin/bcfg2-info +++ b/src/sbin/bcfg2-info @@ -18,7 +18,7 @@ def getInput(): '''read commands from stdin''' try: return raw_input('> ').split(" ") - except: + except KeyboardInterrupt: return [''] def doBuild(cmd, core): @@ -48,7 +48,7 @@ def doClients(_, core): data.append((client, core.metadata.clients[client])) printTabular(data) -def doHelp(_, _): +def doHelp(_, dummy): '''print out usage info''' print 'Commands:' print 'build <hostname> <filename> - build config for hostname, writing to filename' @@ -118,7 +118,7 @@ def doUpdate(_, core): '''Process pending fs events''' core.fam.Service() -def doVersion(_, _): +def doVersion(_, dummy): '''print out code version''' print __revision__ |