Codebase list dir2ogg / 5dc0ef0
Convert not ... in ... to ... not in ... Julian Andres Klode 4 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
6767 patterns = [patterns]
6868 for pat in patterns:
6969 pat = pat.lower()
70 if not pat in _cache:
70 if pat not in _cache:
7171 _cache[pat] = re.compile(translate(pat))
7272 match = _cache[pat].match
7373 for name in names:
8383
8484
8585 def read_opts():
86 if not "--version" in sys.argv:
86 if "--version" not in sys.argv:
8787 show_banner()
8888 if len(sys.argv[1:]) == 0:
8989 fatal("No arguments specified, see --help for usage.")
274274 def return_dirs(root):
275275 mydirs = {}
276276 for pdir, dirs, files in os.walk(root):
277 if not pdir in mydirs:
277 if pdir not in mydirs:
278278 mydirs[pdir] = files
279279 return mydirs
280280
354354 for key, val in mydict.items():
355355 key = key.lower()
356356 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:
358358 continue
359359 if not convert: # Hack for FLAC, which uses Vorbis tags
360360 pass