Commit 90c56ed7 authored by Colomban Wendling's avatar Colomban Wendling

Don't mix various string formatting syntax together

parent e30c8a99
......@@ -95,7 +95,7 @@ class Check(object):
class CheckIP(Check):
def __repr__(self):
return '<' + super().__repr__() + ' on %s>' % (self.addr)
return '<%s on %s>' % (super().__repr__(), self.addr)
class Check4(CheckIP):
......@@ -128,7 +128,7 @@ class CheckDNSZone(Check):
self.zone = zone
def __repr__(self):
return '<' + super().__repr__() + ' for %s>' % (self.zone)
return '<%s for %s>' % (super().__repr__(), self.zone)
def check(self):
command = ['check_dns_soa', '-H', self.zone]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment