diff --git a/pylot/core/io/data.py b/pylot/core/io/data.py index 343eb778..21488ce5 100644 --- a/pylot/core/io/data.py +++ b/pylot/core/io/data.py @@ -39,7 +39,7 @@ class Data(object): elif isinstance(evtdata, dict): evt = readPILOTEvent(**evtdata) evtdata = evt - elif isinstance(evtdata, str): + elif isinstance(evtdata, basestring): try: cat = read_events(evtdata) if len(cat) is not 1: