From 0b5debac6873733685bc55fc1f88da6b5879a85f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 7 Jun 2010 11:03:09 +0000 Subject: Updated files to match PEP 257 git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5895 ce84e21b-d406-0410-9b95-82705330c041 --- src/sbin/bcfg2-reports | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/sbin/bcfg2-reports') 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': -- cgit v1.2.3-1-g7c22