Plugins/PluginPep8Checker.py

branch
5_1_x
changeset 955
377efd9104a7
parent 849
996367a89673
child 1510
e75ecf2bd9dd
equal deleted inserted replaced
951:08ecc72adb94 955:377efd9104a7
263 Private slot to handle the PEP 8 check context menu action 263 Private slot to handle the PEP 8 check context menu action
264 of the editors. 264 of the editors.
265 """ 265 """
266 editor = e5App().getObject("ViewManager").activeWindow() 266 editor = e5App().getObject("ViewManager").activeWindow()
267 if editor is not None: 267 if editor is not None:
268 if editor.checkDirty(): 268 if editor.checkDirty() and editor.getFileName() is not None:
269 self.__editorPep8CheckerDialog = Pep8Dialog() 269 self.__editorPep8CheckerDialog = Pep8Dialog()
270 self.__editorPep8CheckerDialog.show() 270 self.__editorPep8CheckerDialog.show()
271 self.__editorPep8CheckerDialog.start( 271 self.__editorPep8CheckerDialog.start(
272 editor.getFileName(), 272 editor.getFileName(),
273 save = True, 273 save = True,

eric ide

mercurial