Commit db8add3d authored by Robert Bradshaw's avatar Robert Bradshaw

cleanup

parent 968856c5
......@@ -230,6 +230,7 @@ def memoize(f):
return res
return func
@memoize
def parse_tags(filepath):
tags = defaultdict(list)
f = io_open(filepath, encoding='ISO-8859-1', errors='replace')
......@@ -249,8 +250,6 @@ def parse_tags(filepath):
f.close()
return tags
parse_tags = memoize(parse_tags)
list_unchanging_dir = memoize(lambda x: os.listdir(x))
......@@ -1515,7 +1514,7 @@ def main():
missing_dep_excluder = MissingDependencyExcluder(EXT_DEP_MODULES)
version_dep_excluder = VersionDependencyExcluder(VER_DEP_MODULES)
exclude_selectors = [missing_dep_excluder, version_dep_excluder] # want to pring msg at exit
exclude_selectors = [missing_dep_excluder, version_dep_excluder] # want to print msg at exit
if options.exclude:
exclude_selectors += [ string_selector(r) for r in options.exclude ]
......
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