482 return False
483
484
485class ReplaceRobot(SingleSiteBot, ExistingPageBot): 486
487 """A bot that can do text replacements.
488
167 if isinstance(ignore_warnings, Iterable):
168 ignored_warnings = ignore_warnings
169
170 def ignore_warnings(warnings):171 return all(w.code in ignored_warnings for w in warnings)
172
173 ignore_all_warnings = not callable(ignore_warnings) and ignore_warnings
A function, method or class is being redefined in the same scope. This would override the original definition, and doing this is strongly discouraged. Please verify that this is something that you intended to do. Redefining anything can lead to confusion, decreases code readability and may cause bugs that are difficult to diagnose. It is recommended either to refactor the function/method/class, or choose different names.
def calc(x, y):
return x + y
def calc(x, y):
return x * y
def calc_sum(x, y):
return x + y
def calc_product(x, y):
return x * y