Ignore:
Timestamp:
Sep 21, 2017, 3:17:50 PM (9 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
0.5, debian/bullseye, debian/jessie, master
Children:
f29f4d3
Parents:
3145648
git-author:
Joachim Langenbach <joachim.langenbach@…> (09/21/17 14:52:42)
git-committer:
Joachim Langenbach <joachim.langenbach@…> (09/21/17 15:17:50)
Message:
  • Changed all % string formattings into string.format
  • Changed all print "" calls into print() calls
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/python/gnuboat/daemon/rrdhandler.py

    r3145648 rb45e75d  
    4040    rrd_archives = []
    4141    for i in range(0, len(archives)):
    42         rrd_archives += ['RRA:AVERAGE:0.5:%d:%d' % (_steps(archives[i]["resolution"], step), _rows(
     42        rrd_archives += ['RRA:AVERAGE:0.5:{:d}:{:d}'.format(_steps(archives[i]["resolution"], step), _rows(
    4343        archives[i]["duration"], archives[i]["resolution"], step))]
    4444
    … …  
    5656        rrdtool.update(rrdfile, value_string)
    5757    except:
    58         print "Failed to update rrd database %s with values\n  %s" % (rrdfile, value_string)
     58        print('Failed to update rrd database {} with values\n  {}'.format(rrdfile, value_string))
    5959        print(traceback.format_exc())
    6060
Note: See TracChangeset for help on using the changeset viewer.