Skip to content

Commit c0660f2

Browse files
committedMay 5, 2020
Modernize code
1 parent 9e5e0d1 commit c0660f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎python/qsci_apis/generate_console_pap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def _preparationFinished(self):
5050
try:
5151
if os.path.exists(self._pap_file):
5252
os.remove(self._pap_file)
53-
prepd = self._api.savePrepared(unicode(self._pap_file))
53+
prepd = self._api.savePrepared(str(self._pap_file))
5454
self._api = None
5555
sys.exit(0 if prepd else 1)
5656
except Exception as err:
@@ -62,7 +62,7 @@ def prepareAPI(self):
6262
self._api = QsciAPIs(self._api_lexer)
6363
self._api.apiPreparationFinished.connect(self._preparationFinished)
6464
for api_file in self._api_files:
65-
self._api.load(unicode(api_file))
65+
self._api.load(str(api_file))
6666
self._api.prepare()
6767
except Exception as err:
6868
self._api = None

0 commit comments

Comments
 (0)