Skip to content
Snippets Groups Projects
Commit 35f28a32 authored by Yash Shah's avatar Yash Shah
Browse files

Resolve Python 2 str/unicode discrepancy

parent 4429afd4
No related branches found
No related tags found
No related merge requests found
"""Controller class for geomag algorithms""" """Controller class for geomag algorithms"""
from __future__ import absolute_import, print_function from __future__ import absolute_import, print_function
from builtins import str as unicode
import argparse import argparse
import sys import sys
...@@ -475,7 +476,7 @@ def main(args): ...@@ -475,7 +476,7 @@ def main(args):
# TODO check for unused arguments. # TODO check for unused arguments.
# make sure observatory is a tuple # make sure observatory is a tuple
if isinstance(args.observatory, (str, str)): if isinstance(args.observatory, (str, unicode)):
args.observatory = (args.observatory,) args.observatory = (args.observatory,)
if args.observatory_foreach: if args.observatory_foreach:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment