[change] parameter evtdata of class Data has to be called as str object
(instead of outdated basestring) to make the class python 3 compatible
This commit is contained in:
parent
20e86cee5a
commit
227112cbac
@ -716,7 +716,7 @@ class MainWindow(QMainWindow):
|
||||
event = self.get_current_event()
|
||||
data = Data(self, event)
|
||||
try:
|
||||
data_new = Data(self, evtdata=fname)
|
||||
data_new = Data(self, evtdata=str(fname))
|
||||
data += data_new
|
||||
except ValueError:
|
||||
qmb = QMessageBox(self, icon=QMessageBox.Question,
|
||||
|
@ -39,7 +39,7 @@ class Data(object):
|
||||
elif isinstance(evtdata, dict):
|
||||
evt = readPILOTEvent(**evtdata)
|
||||
evtdata = evt
|
||||
elif isinstance(evtdata, basestring):
|
||||
elif isinstance(evtdata, str):
|
||||
try:
|
||||
cat = read_events(evtdata)
|
||||
if len(cat) is not 1:
|
||||
|
Loading…
Reference in New Issue
Block a user