~pythonregexp2.7/python/issue2636-09-01+10

« back to all changes in this revision

Viewing changes to Demo/scripts/ftpstats.py

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-09-22 21:39:45 UTC
  • mfrom: (39055.1.33 Regexp-2.7)
  • Revision ID: darklord@timehorse.com-20080922213945-23717m5eiqpamcyn
Merged in changes from the Single-Loop Engine branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
 
105
105
def showbar(dict, title):
106
106
    n = len(title)
107
 
    print '='*((70-n)/2), title, '='*((71-n)/2)
 
107
    print '='*((70-n)//2), title, '='*((71-n)//2)
108
108
    list = []
109
109
    keys = dict.keys()
110
110
    keys.sort()
126
126
    if len(dict) > maxitems:
127
127
        title = title + ' (first %d)'%maxitems
128
128
    n = len(title)
129
 
    print '='*((70-n)/2), title, '='*((71-n)/2)
 
129
    print '='*((70-n)//2), title, '='*((71-n)//2)
130
130
    list = []
131
131
    keys = dict.keys()
132
132
    for key in keys: