Skip to content
Permalink
Browse files

Modernize code

  • Loading branch information
m-kuhn committed May 5, 2020
1 parent 9e5e0d1 commit c0660f24d58e9e15e7398715ec91a3b5981e5512
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/qsci_apis/generate_console_pap.py
@@ -50,7 +50,7 @@ def _preparationFinished(self):
try:
if os.path.exists(self._pap_file):
os.remove(self._pap_file)
prepd = self._api.savePrepared(unicode(self._pap_file))
prepd = self._api.savePrepared(str(self._pap_file))
self._api = None
sys.exit(0 if prepd else 1)
except Exception as err:
@@ -62,7 +62,7 @@ def prepareAPI(self):
self._api = QsciAPIs(self._api_lexer)
self._api.apiPreparationFinished.connect(self._preparationFinished)
for api_file in self._api_files:
self._api.load(unicode(api_file))
self._api.load(str(api_file))
self._api.prepare()
except Exception as err:
self._api = None

0 comments on commit c0660f2

Please sign in to comment.
You can’t perform that action at this time.