Skip to content

Commit 8db273c

Browse files
author
Richard Jones
committed
bugfix
1 parent b98722f commit 8db273c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

roundup/admin.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: admin.py,v 1.46 2003-03-23 06:07:05 richard Exp $
19+
# $Id: admin.py,v 1.47 2003-03-23 09:37:20 richard Exp $
2020

2121
'''Administration commands for maintaining Roundup trackers.
2222
'''
@@ -801,18 +801,18 @@ def do_table(self, args):
801801
for spec in prop_names:
802802
if ':' in spec:
803803
name, width = spec.split(':')
804-
if width == '':
804+
if width == '':
805805
props.append((name, len(spec)))
806-
else:
806+
else:
807807
props.append((name, int(width)))
808808
else:
809809
# this is going to be slow
810810
maxlen = len(spec)
811811
for nodeid in cl.list():
812-
curlen = len(str(cl.get(nodeid, spec)))
812+
curlen = len(str(cl.get(nodeid, spec)))
813813
if curlen > maxlen:
814814
maxlen = curlen
815-
props.append((spec, maxlen))
815+
props.append((spec, maxlen))
816816

817817
# now display the heading
818818
print ' '.join([name.capitalize().ljust(width) for name,width in props])

0 commit comments

Comments
 (0)