summaryrefslogtreecommitdiffstats
path: root/src/sbin/bcfg2-build-reports
diff options
context:
space:
mode:
authorFabian Affolter <fabian@bernewireless.net>2010-06-21 09:07:06 +0000
committerSol Jerome <sol.jerome@gmail.com>2010-06-21 14:11:35 -0500
commit6c76097531b26ff9f69709f8725192e8c8fff791 (patch)
tree29ded5c542190c445014864e55715aa18a0e486a /src/sbin/bcfg2-build-reports
parentead071d65e6554c9b87fd11939d6a910109af3db (diff)
downloadbcfg2-6c76097531b26ff9f69709f8725192e8c8fff791.tar.gz
bcfg2-6c76097531b26ff9f69709f8725192e8c8fff791.tar.bz2
bcfg2-6c76097531b26ff9f69709f8725192e8c8fff791.zip
Updated files to match PEP 257
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5953 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin/bcfg2-build-reports')
-rwxr-xr-xsrc/sbin/bcfg2-build-reports10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sbin/bcfg2-build-reports b/src/sbin/bcfg2-build-reports
index 602735bc5..dd5d9ce84 100755
--- a/src/sbin/bcfg2-build-reports
+++ b/src/sbin/bcfg2-build-reports
@@ -1,7 +1,7 @@
#!/usr/bin/env python
-"""bcfg2-build-reports Generates & distributes reports of statistic information
-for bcfg2"""
+"""bcfg2-build-reports generates & distributes reports of statistic information
+for Bcfg2."""
__revision__ = '$Revision$'
@@ -109,7 +109,7 @@ def rss(reportxml, delivery, report):
fil.close()
def www(reportxml, delivery):
- """www outputs report to"""
+ """www outputs report to."""
#this can later link to WWW report if one gets published simultaneously?
for destination in delivery.findall('Destination'):
@@ -119,7 +119,7 @@ def www(reportxml, delivery):
fil.close()
def fileout(reportxml, delivery):
- """outputs to plain text file"""
+ """Outputs to plain text file."""
for destination in delivery.findall('Destination'):
fil = open(destination.attrib['address'], 'w')
@@ -192,7 +192,7 @@ if __name__ == '__main__':
# os.system('GenerateHostInfo')#Generate HostInfo needs to be in path
- """Reads Data & Config files"""
+ """Reads data & config files."""
try:
statsdata = XML(open(statpath).read())
except (IOError, XMLSyntaxError):