Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
gh-105983: Fixed some logical errors
  • Loading branch information
AmirNakhaeii committed Jun 24, 2023
commit 545784d94cbd9edf8067fd6d13c3b0e9454a225b
4 changes: 2 additions & 2 deletions Lib/webbrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,10 @@ def open(self, url, new=0, autoraise=True):
elif new == 1:
action = self.remote_action_newwin
elif new == 2:
if action := self.remote_action_newtab is None:
if (action := self.remote_action_newtab) is None:
action = self.remote_action_newwin
elif new == 3:
if action := self.remote_action_new_incognito_tab is None:
if (action := self.remote_action_new_incognito_tab) is None:
action = self.remote_action_newwin
else:
raise Error("Bad 'new' parameter to open(); " +
Expand Down