[issue13359] urllib2 doesn't escape spaces in http requests
Krishna Bharadwaj added the comment: I have used the quote method to percent encode the url for spaces and similar characters. This is my first patch. Please let me know if there is anything wrong. I will correct and re-submit it. I ran the test_urllib2.py which gave an OK for 34 tests. Changes are made in two instances: 1. in the open method. 2. in the __init__ of Request class to ensure that the same issue is addressed at the time of creating Request objects. -- keywords: +patch nosy: +krisys Added file: http://bugs.python.org/file23642/issue13359.patch ___ Python tracker <http://bugs.python.org/issue13359> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13375] Provide a namedtuple style interface for os.walk values
Krishna Bharadwaj added the comment: Have included a patch which alters the walk method to yield a namedtuple and the members can be accessed by dirpath, dirnames and filenames. Got the following results after running the test. Ran 61 tests in 0.080s OK (skipped=4) Please let me know if the same can be achieved in a better way. -- keywords: +patch nosy: +krisys Added file: http://bugs.python.org/file23644/issue13375.diff ___ Python tracker <http://bugs.python.org/issue13375> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13375] Provide a namedtuple style interface for os.walk values
Krishna Bharadwaj added the comment: Hey Amaury, can you tell me if the following test cases would suffice? If not, I can think of adding something more comprehensive. Also, can you provide some pointers related to the bootstrap issue so that I can look at the same? -- Added file: http://bugs.python.org/file23645/issue13375_tests.diff ___ Python tracker <http://bugs.python.org/issue13375> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com