diff --git a/relational_gui.py b/relational_gui.py index dc1b726..a1a33b4 100755 --- a/relational_gui.py +++ b/relational_gui.py @@ -104,9 +104,9 @@ if __name__ == "__main__": form = guihandler.relForm() - m = enumerate(map(os.path.isfile, files)) + m = zip(files, map(os.path.isfile, files)) invalid = ' '.join( - (files[i[0]] for i in (filter(lambda x: not x[1], m))) + (i[0] for i in (filter(lambda x: not x[1], m))) ) if invalid: print ("%s: not a file" % invalid, file=sys.stderr)