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
Multiple webbrowser.py bug fixes / improvements #38377
Comments
In using webbrowser.py we uncovered and fixed a number Appended below is a summary of the changes made. This I'm also submitting some unit tests for the module. I've tried to review everything carefully, further Hope this is helpful.
|
Logged In: YES Oops, correcting the upload |
Logged In: YES Jeez, here is the list of changes in this patch which I Bugs fixed:
Other internal changes made:
Changes to the public interface:
|
Logged In: YES Because this is quite a large change, I recommend to |
Logged In: YES Yes, I intended it to be post-2.3. The Group popup choices |
Logged In: YES Is now. |
Logged In: YES I'm uploading a newer version of the webbrowser.py file, --- wingwebbrowser.py 20 Feb 2004 23:45:26 -0000 1.3
+++ wingwebbrowser.py 10 Nov 2004 16:51:36 -0000 1.4
@@ -210,6 +210,8 @@
def _splitcommand(cmd):
"""Extract command name and args from command line"""
+ if cmd == '':
+ return '', ''
if cmd[0] in ('"', "'"):
name = cmd[1:cmd[1:].find(cmd[0])+1]
args = cmd[len(name)+2:].strip()
@@ -603,7 +605,8 @@
# Treat choices in same way as if passed into get() but
do register
# and prepend to _tryorder
for cmdline in _userchoices:
- _synthesize(cmdline, -1, True)
+ if cmdline != '':
+ _synthesize(cmdline, -1, True)
cmdline = None # to make del work if _userchoices was empty
del cmdline
del _userchoices |
Logged In: YES According to the Patch Submission Guidelines, we are |
Logged In: YES Against the [http://python.org/patches/ Patch Submission The large numbers of changes make it difficult to review. All the changes were documented to the top of the file, I There are several OS X specific corrections that I'm unable The modules was renamed to wingwebbrowser.py and the test There are three categories of changes: bug fixes, internal It should be applied before patch 1077979, otherwise that In spite of the formatting comments above, there are This is a nice candidate to be tackled in a Python Bug Day, I recommend keeping it open until somebody (possibly its |
Logged In: YES Sorry, guilty as charged re: uploading whole files. I did Some additional comments: Splitting off the bug fixes for specific OSes may also be a Ediff is a good way to review the changes against current I deleted the initial (bad) upload. Not sure why I didn't |
Logged In: YES After two days of studying and playing with the patch I The problem number one. The patch tries to emulate a Unix The problem number two. It adds ' &' to the every The problem number three. The patch quotes too much. It |
Logged In: YES I'd like to return to discuss some parts that I've Instead of manipulating strings manipulate lists (of strings That said, I'd like to ask you to rewrite _safequote() and |
Logged In: YES Relevant ideas are now in bpo-754022. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: