File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,8 @@ def setShortcuts(self, shortcuts):
295295 )
296296 QAction .setShortcut = _action_set_shortcut
297297 QAction .setShortcuts = _action_set_shortcuts
298- if ( # despite the two previous lines!
298+ # Despite the two previous lines!
299+ if (
299300 QAction .setShortcut is not _action_set_shortcut
300301 or QAction .setShortcuts is not _action_set_shortcuts
301302 ):
Original file line number Diff line number Diff line change @@ -228,7 +228,8 @@ def addAction(self, *args):
228228 old_add_action = QMenu .addAction ,
229229 )
230230 QMenu .addAction = _menu_add_action
231- if QMenu .addAction is not _menu_add_action : # despite the previous line!
231+ # Despite the previous line!
232+ if QMenu .addAction is not _menu_add_action :
232233 QMenu = _QMenu
233234
234235 class _QToolBar (QToolBar ):
@@ -246,7 +247,6 @@ def addAction(self, *args):
246247 old_add_action = QToolBar .addAction ,
247248 )
248249 QToolBar .addAction = _toolbar_add_action
249- if ( # despite the previous line!
250- QToolBar .addAction is not _toolbar_add_action
251- ):
250+ # Despite the previous line!
251+ if QToolBar .addAction is not _toolbar_add_action :
252252 QToolBar = _QToolBar
You can’t perform that action at this time.
0 commit comments