PluginPyLint.py

changeset 74
118903c67658
parent 72
d864ddf21044
child 75
9351836385cb
equal deleted inserted replaced
73:03d89d7a9d80 74:118903c67658
228 # get a QByteArray of the output 228 # get a QByteArray of the output
229 versionBytes = process.readAllStandardOutput() 229 versionBytes = process.readAllStandardOutput()
230 versionStr = str(versionBytes, encoding='utf-8').strip() 230 versionStr = str(versionBytes, encoding='utf-8').strip()
231 if versionStr == "3": 231 if versionStr == "3":
232 _exePy3.add(exe) 232 _exePy3.add(exe)
233 else: 233 elif versionStr == "2":
234 _exePy2.add(exe) 234 _exePy2.add(exe)
235 finally: 235 finally:
236 f.close() 236 f.close()
237 237
238 executables = _exePy3 if majorVersion == 3 else _exePy2 238 executables = _exePy3 if majorVersion == 3 else _exePy2

eric ide

mercurial