Commit 16273576 authored by Samuel Debionne's avatar Samuel Debionne

Fix python 3 issues

parent 5346566a
Pipeline #5803 passed with stages
in 6 minutes and 34 seconds
......@@ -154,9 +154,9 @@ class Maxipix(PyTango.Device_4Impl):
filePath = spath+'/'+file
fileStat = os.stat(filePath)
modifiedTime = fileStat.st_mtime
fileDict[modifiedTime]= file.strip('.cfg')
fileDict[modifiedTime]= os.path.splitext(file)[0]
if fileDict:
timeList = fileDict.keys();timeList.sort()
timeList = sorted(fileDict.keys())
for mTime in timeList:
fileList.append(fileDict[mTime])
#fileList.append(time.ctime(mTime))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment