python-diamond / Diamond

Diamond is a python daemon that collects system metrics and publishes them to Graphite (and others). It is capable of collecting cpu, memory, network, i/o, load and disk metrics. Additionally, it features an API for implementing custom collectors for gathering metrics from almost any source.
http://diamond.readthedocs.org/
MIT License
1.74k stars 601 forks source link

Add positional argument specifiers for statement #634

Closed DarrellMozingo closed 7 years ago

DarrellMozingo commented 7 years ago

By omitting the positional specifiers it pushes the Python requirement to 2.7+ (right now the docs state 2.4+).

See: https://docs.python.org/2/library/string.html#format-string-syntax "Changed in version 2.7: The positional argument specifiers can be omitted, so '{} {}' is equivalent to '{0} {1}'."

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 24.667% when pulling d76939ff4e1a79347eae537bd29cd76a1629fe1f on DarrellMozingo:patch-1 into 450462ae63c9ba6674843d6662be9e167b9409f3 on python-diamond:master.