diff options
author | Fabian Affolter <fabian@bernewireless.net> | 2010-06-07 11:03:09 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2010-06-07 08:42:52 -0500 |
commit | 0b5debac6873733685bc55fc1f88da6b5879a85f (patch) | |
tree | ef6fdc4c51ad1d86228707cfaccef6c6d7e0d072 /src/sbin/bcfg2-reports | |
parent | d52c925dedfabc0f8ba0b3a137fcf977749a055e (diff) | |
download | bcfg2-0b5debac6873733685bc55fc1f88da6b5879a85f.tar.gz bcfg2-0b5debac6873733685bc55fc1f88da6b5879a85f.tar.bz2 bcfg2-0b5debac6873733685bc55fc1f88da6b5879a85f.zip |
Updated files to match PEP 257
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5895 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin/bcfg2-reports')
-rwxr-xr-x | src/sbin/bcfg2-reports | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sbin/bcfg2-reports b/src/sbin/bcfg2-reports index 35c72f9d7..337a2480f 100755 --- a/src/sbin/bcfg2-reports +++ b/src/sbin/bcfg2-reports @@ -1,5 +1,5 @@ #! /usr/bin/env python -'''Query reporting system for client status''' +"""Query reporting system for client status""" __revision__ = '$Revision$' import os @@ -21,16 +21,16 @@ import datetime import fileinput def timecompare(client1, client2): - '''compares two clients by their timestamps''' + """Compares two clients by their timestamps""" return cmp(client1.current_interaction.timestamp, \ client2.current_interaction.timestamp) def namecompare(client1, client2): - '''compares two clients by their names''' + """Compares two clients by their names""" return cmp(client1.name, client2.name) def statecompare(client1, client2): - '''compares two clients by their states''' + """Compares two clients by their states""" clean1 = client1.current_interaction.isclean() clean2 = client2.current_interaction.isclean() @@ -42,7 +42,7 @@ def statecompare(client1, client2): return 0 def crit_compare(criterion, client1, client2): - '''compares two clients by the criteria provided in criterion''' + """Compares two clients by the criteria provided in criterion""" for crit in criterion: comp = 0 if crit == 'name': @@ -58,10 +58,10 @@ def crit_compare(criterion, client1, client2): return 0 def print_fields(fields, cli, max_name, entrydict): - ''' - prints the fields specified in fields of cli, max_name + """ + Prints the fields specified in fields of cli, max_name specifies the column width of the name column - ''' + """" fmt = '' for field in fields: if field == 'name': |