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:
if self.info:
txt += ' {0}'.format(self.info)
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():
logging.info("[==========] Mirror server running at %s", server.address())
def exit(signum, frame):
def kill(signum, frame):
logging.info("[==========] Shutdown.")
server.stop()
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:
time.sleep(0.5)
......
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