aragilar / stringtopy

Re-defined variable from outer scope PYL-W0621
Anti-pattern
Major
4 years ago4 years old
Redefining name 'errors' from outer scope (line 1696)
1658def scan_setup_py():
1659    found = set()
1660    setters = False
1661    errors = 01662    with open("setup.py", "r") as f:
1663        for line in f.readlines():
1664            if "import versioneer" in line:
Redefining name 'run_command' from outer scope (line 436)
 997
 998
 999@register_vcs_handler("git", "pieces_from_vcs")
1000def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command):1001    # this runs 'git' from the root of the source tree. This only gets called
1002    # if the git-archive 'subst' keywords were *not* expanded, and
1003    # _version.py hasn't already been rewritten with a short version string,