[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:
Marcel Paffrath 2017-07-14 13:30:54 +02:00
parent 20e86cee5a
commit 227112cbac
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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: