Commit 1bc612bc authored by Tomas Krizek's avatar Tomas Krizek

pylint: fix W0622 redefined-builtin

parent bda01896
......@@ -467,9 +467,9 @@ class Range:
txt += 'RANGE_END\n\n'
return txt
def eligible(self, id, address):
def eligible(self, ident, address):
""" Return true if this range is eligible for fetching reply. """
if self.a <= id <= self.b:
if self.a <= ident <= self.b:
return (None is address
or set() == self.addresses
or address in self.addresses)
......@@ -748,8 +748,8 @@ class Scenario:
txt += ' {0}'.format(
txt += '\n'
for range in self.ranges:
txt += str(range)
for range_ in self.ranges:
txt += str(range_)
for step in self.steps:
txt += str(step)
txt += "\nSCENARIO_END"
......@@ -267,13 +267,13 @@ def standalone_self_test():"[==========] Mirror server running at %s", server.address())
def exit(signum, frame):
def kill(signum, frame):"[==========] Shutdown.")
sys.exit(128 + signum)
signal.signal(signal.SIGINT, exit)
signal.signal(signal.SIGTERM, exit)
signal.signal(signal.SIGINT, kill)
signal.signal(signal.SIGTERM, kill)
while True:
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment