diff options
Diffstat (limited to 'astro/query_ned.py')
-rwxr-xr-x | astro/query_ned.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/astro/query_ned.py b/astro/query_ned.py index 22cb5a8..6bfb1ff 100755 --- a/astro/query_ned.py +++ b/astro/query_ned.py @@ -108,9 +108,9 @@ def main(): args = parser.parse_args() try: - names = map(str.strip, open(args.input).readlines()) + names = list(map(str.strip, open(args.input).readlines())) except FileNotFoundError: - names = map(str.strip, args.input.split(",")) + names = list(map(str.strip, args.input.split(","))) results_list = [] @@ -133,6 +133,3 @@ def main(): if __name__ == "__main__": main() - - -# vim: set ts=4 sw=4 tw=0 fenc=utf-8 ft=python: # |