8000 gh-68583: webbrowser: replace `getopt` with `argparse`, add long options by hugovk · Pull Request #117047 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-68583: webbrowser: replace getopt with argparse, add long options #117047

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Apr 13, 2024
Merged
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
Remove redundant parentheses
  • Loading branch information
hugovk committed Mar 19, 2024
commit a1ebffc05d3cefeaa850e67651d5d0ed15c27142
4 changes: 2 additions & 2 deletions Lib/webbrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def open(self, url, new=0, autoraise=True):
else:
p = subprocess.Popen(cmdline, close_fds=True,
start_new_session=True)
return (p.poll() is None)
return p.poll() is None
except OSError:
return False

Expand Down Expand Up @@ -396,7 +396,7 @@ def open(self, url, new=0, autoraise=True):
except OSError:
return False
else:
return (p.poll() is None)
return p.poll() is None


class Edge(UnixBrowser):
Expand Down
0