Convert not ... in ... to ... not in ...
Julian Andres Klode
4 years ago
67 | 67 | patterns = [patterns] |
68 | 68 | for pat in patterns: |
69 | 69 | pat = pat.lower() |
70 | if not pat in _cache: | |
70 | if pat not in _cache: | |
71 | 71 | _cache[pat] = re.compile(translate(pat)) |
72 | 72 | match = _cache[pat].match |
73 | 73 | for name in names: |
83 | 83 | |
84 | 84 | |
85 | 85 | def read_opts(): |
86 | if not "--version" in sys.argv: | |
86 | if "--version" not in sys.argv: | |
87 | 87 | show_banner() |
88 | 88 | if len(sys.argv[1:]) == 0: |
89 | 89 | fatal("No arguments specified, see --help for usage.") |
274 | 274 | def return_dirs(root): |
275 | 275 | mydirs = {} |
276 | 276 | for pdir, dirs, files in os.walk(root): |
277 | if not pdir in mydirs: | |
277 | if pdir not in mydirs: | |
278 | 278 | mydirs[pdir] = files |
279 | 279 | return mydirs |
280 | 280 | |
354 | 354 | for key, val in mydict.items(): |
355 | 355 | key = key.lower() |
356 | 356 | key = convert and (key in convert and convert[key] or key) or key |
357 | if not key in self.accept: | |
357 | if key not in self.accept: | |
358 | 358 | continue |
359 | 359 | if not convert: # Hack for FLAC, which uses Vorbis tags |
360 | 360 | pass |