Changeset 71:c8e39db35e46 in stamper for stamper/stamper.py


Ignore:
Timestamp:
Sep 5, 2019, 4:38:38 PM (5 years ago)
Author:
Borja Lopez <borja@…>
Branch:
default
Phase:
public
Message:

Make stamper python-3 compatible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stamper/stamper.py

    r69 r71  
    292292                    # daily totals
    293293                    print('daily total: %(total)s' % {'total': totals[day]})
    294             print '-'*79
     294            print('-'*79)
    295295
    296296        # now calculate the totals and show them
     
    318318            if totals:
    319319                print('------ Totals ------' % {'day': day})
    320                 for day, tot in totals.iteritems():
     320                for day, tot in totals.items():
    321321                    print(' %(day)s: %(total)s' % {'day': day, 'total': tot})
    322322                    sum_tot = "%(total)s %(new)s" % {
Note: See TracChangeset for help on using the changeset viewer.