Skip to content

Commit

Permalink
Modernize code
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed May 5, 2020
1 parent 9e5e0d1 commit c0660f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/qsci_apis/generate_console_pap.py
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit c0660f2

Please sign in to comment.