[issue1285086] urllib.quote is too slow

2013-03-13 Thread Senthil Kumaran
Senthil Kumaran added the comment: Serhiy - Is there any technical issue that is holding up this patch? (I dont see any). If nothing is holding up and you are busy, I shall go ahead with committing this one. /cc flox -- ___ Python tracker rep

[issue14639] Different behavior for urllib2 in Python 2.7

2013-03-13 Thread Senthil Kumaran
Senthil Kumaran added the comment: I am okay with closing this. If Diego gets back with more info or specifics of error, we can deal with it. -- assignee: - orsenthil resolution: - wont fix stage: - committed/rejected status: pending - closed

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2013-03-13 Thread Senthil Kumaran
Senthil Kumaran added the comment: Karl - I reviewed the patch and like it. Here are some comments. At first, I did not see the need for both message and explain in the API both having almost similar purposes. But given that explain is already used by send_error and at the moment, un

[issue17307] HTTP PUT request Example

2013-03-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: Karl, I am getting back to this. Thanks for your review comments on the patch. 1. Agree with your explanation on HTTP PUT. I shall modify the comment. 2. I think, it is okay to remove the HTTP PUT server example. I wrote it for test purposes and I think

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2013-03-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: Karl - thanks for your telnet debugging session output. Helped realized the problem better. So I had been thinking that sending message is okay. But had not realized that same variable name was used and was causing problem. I have gone ahead with the fix

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2013-03-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: There is a test failure. which leads me to believe that Error message may probably be relied upon by some applications. FAIL: test_header_length (test.test_httpservers.BaseHTTPRequestHandlerTestCase

[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline

2013-03-04 Thread Senthil Kumaran
Senthil Kumaran added the comment: Karl, Ack. The patch looks good. I shall go about with testing + committing this.. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12921

[issue17128] OS X system openssl deprecated - installer should build local libssl

2013-03-04 Thread Senthil Kumaran
Senthil Kumaran added the comment: Ronald: Sorry for the delay in response. I was referring to this: https://github.com/capistrano/capistrano/issues/250#issuecomment-8055991 Mountain Lion no longer includes OpenSSL as it uses a different SSL implementation. So, you need to have RVM install

[issue17322] urllib.request add_header() currently allows trailing spaces (and other weird stuff)

2013-03-03 Thread Senthil Kumaran
Senthil Kumaran added the comment: David Karl - I had been thinking on this. My understanding of the RFC implies that server should reject when the headers contain the whitespace and I had a little concern if the client library should feel free to cleanup a wrongly set headers? Would

[issue17322] urllib.request add_header() currently allows trailing spaces (and other weird stuff)

2013-03-03 Thread Senthil Kumaran
Senthil Kumaran added the comment: Looks like curl is sending the headers without removing spaces. Check Raw here link here. (The link would probably be online a week) http://requestb.in/1kfodmj1?inspect $ curl --header X-MyHeader: 123 http://requestb.in/1kfodmj1 ok $ curl --header X

[issue17322] urllib.request add_header() currently allows trailing spaces (and other weird stuff)

2013-03-03 Thread Senthil Kumaran
Senthil Kumaran added the comment: Oh wow. Thank you very much Karl for the care. I am having the same inclination are you too, but determining a definite answer is really helpful before going ahead into making the change. -- ___ Python tracker rep

[issue17322] urllib.request add_header() currently allows trailing spaces (and other weird stuff)

2013-03-03 Thread Senthil Kumaran
Senthil Kumaran added the comment: The curl example also suggest to think about pragamatic de-facto stuff. Will removing the spaces cause any breakage? I can say for sure. But if someone can think of it, it would be good for at least us know

[issue17324] SimpleHTTPServer serves files even if the URL has a trailing slash

2013-03-01 Thread Senthil Kumaran
Senthil Kumaran added the comment: I thought this was fixed (recently). Shall look again. Having the tests is the only hard part here. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17324

[issue17307] HTTP PUT request Example

2013-02-27 Thread Senthil Kumaran
New submission from Senthil Kumaran: I think an explicit HTTP put request example in the docs may help. Previously, I thought the POST example was enough as PUT is very similar, but given the folks are looking for it, an example of how to do a PUT request using httplib may be helpful. Here

[issue17307] HTTP PUT request Example

2013-02-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: Ezio. yes in 3.3 onwards it should be done in urllib.request. I was having 2.7 docs in my mind, but I ended up writing for latest with the intention to backport. I have updated the patch to include both ways, while backporting to 2.7 and 3.2, plan to include

[issue16932] urlparse fails at parsing www.python.org:80/

2013-02-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: I am noticing this one late. Sorry for that. I agree that this is docs issue and I would like to fix it in this way. Give the doc example as: urlparse('www.cwi.nl/%7Eguido/Python.html') ParseResult(scheme='', netloc='', path='www.cwi.nl/%7Eguido/Python.html

[issue16932] urlparse fails at parsing www.python.org:80/

2013-02-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: I have fixed the docs issue. Thanks for the report and following up. -- assignee: - orsenthil keywords: -buildbot resolution: - fixed stage: needs patch - committed/rejected status: open - closed type: - behavior

[issue17302] HTTP/2.0 - Implementations/Testing efforts

2013-02-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes, feature complete of 1.1 will be a start. :( -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17302

[issue979407] urllib2 digest auth totally broken

2013-02-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: let me check that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue979407 ___ ___ Python-bugs-list mailing

[issue1285086] urllib.quote is too slow

2013-02-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: Serhiy Storchaka added the comment: + append = res.append And then use 'append'? This speed up unquote_to_bytes by 15%. Thanks for the response. In fact, writing the whole _hextobyte verbatim would further increase the speed, but that would be huge dis

[issue16278] os.rename documentation slightly inaccurate

2013-02-13 Thread Senthil Kumaran
Senthil Kumaran added the comment: The doc change looks good to me. I am adding Terry and Ezio to see if they have any comments on wordings in the doc. If not, I can commit this change. I think that this is helpful. -- nosy: +ezio.melotti, orsenthil, terry.reedy

[issue16278] os.rename documentation slightly inaccurate

2013-02-13 Thread Senthil Kumaran
Senthil Kumaran added the comment: Chris: The patch is for the docs. the test code I believe, is for reference. It would be to run it on different OS and verify the documentation matches the behavior.I am okay with more than one person verifying this and I shall do on OS'es I have

Re: [issue1285086] urllib.quote is too slow

2013-02-13 Thread Senthil Kumaran
Applying this patch - I tried this hypothetical test. $ ./python.exe -m timeit -s import urllib.parse; x='a%20' * 10 urllib.parse.unquote(x) 10 loops, best of 3: 205 msec per loop Without the patch, the above test will run for minutes! This creates a significant difference for extremely

[issue1285086] urllib.quote is too slow

2013-02-13 Thread Senthil Kumaran
Senthil Kumaran added the comment: I wrongly minutes. Here is actual data of execution speeds. There is magnitude of difference (almost 130x faster). Measured on macbook pro with 2 cores and 4 Gig mem. Before Patch: $ ./python.exe -m timeit -s import urllib.parse; x='a%20' * 10

[issue17200] telnetlib.read_until() timeout uses the wrong units

2013-02-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the bug report, Reuben. I verified that this is indeed a bug and should be fixed in all versions. Thanks for the patch too, would you like to enhance it with tests? GeneralTests in test_telnetlib.py support timeout and you could that exercise

[issue17200] telnetlib.read_until() timeout uses the wrong units

2013-02-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: @gps: looks like it is. For changeset: 78129:de229dde486b for Issue #14635 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17200

Re: [issue16996] Reuse shutil.which() in webbrowser module

2013-02-12 Thread Senthil Kumaran
Serhiy: The patch LGTM. ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default

2013-02-10 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10852 ___ ___ Python-bugs-list

[issue17167] python man page contains $Date$ in page footer

2013-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: There is another option. To have the same behavior like svn keywords through hg. Having this setting at server hgrc can help. This will be useful if we have more than one instance of keyword expansion. [extensions] keyword= [keyword] **/*.man = [keywordmaps

[issue17164] MozillaCookieJar does not handle session cookies

2013-02-10 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17164 ___ ___ Python-bugs-list

[issue17158] help() module searcher text improvement

2013-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: You will stumble on that message, only if you give help(module somename) and note that somename could be any module in the PYTHONPATH. We can change to show the text only if the module is a valid module, but I think, it is costly do that computation for help

[issue17128] OS X system openssl deprecated - installer should build local libssl

2013-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: It should be noted that latest OSX Mountain Lion has caused problems for other language libraries too (specifically ruby, which I use at work). Ease the support of correct openssl in OSX may help a long way in all versions of python. -- nosy

[issue17158] help() module searcher text improvement

2013-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: The patch looks good to me. This change is helpful and definitely an improvement over the existing text. Please go ahead with committing it, Terry. Thanks. -- ___ Python tracker rep...@bugs.python.org http

[issue17169] Restore errno in tempfile exceptions

2013-02-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: The patch looks good and it is correct thing to do IMO. thanks. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17169

[issue17172] Add turtledemo to IDLE menu

2013-02-09 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17172 ___ ___ Python-bugs-list

[issue17069] HTTP result code in urllib2.urlopen() file object undocumented

2013-02-07 Thread Senthil Kumaran
Senthil Kumaran added the comment: I shall go ahead with this change. And when the URLopener and FancyURLopener removed, all their references in the docs (including this change) will be removed. -- ___ Python tracker rep...@bugs.python.org http

[issue17069] HTTP result code in urllib2.urlopen() file object undocumented

2013-02-07 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17069

[issue17069] HTTP result code in urllib2.urlopen() file object undocumented

2013-02-04 Thread Senthil Kumaran
Senthil Kumaran added the comment: Here is he patch against the default that would address this reported issue. Same would go for other 3.x branches. The 2.7 only can just see the addition of getcode() documented. -- assignee: - orsenthil keywords: +patch stage: - patch review type

[issue17069] HTTP result code in urllib2.urlopen() file object undocumented

2013-02-04 Thread Senthil Kumaran
Senthil Kumaran added the comment: Éric, thanks for the comment. URLopener and FancyURLopener is deprecated, so that reference to that can be removed from 3.4 (after removing the URLopener and FancyURLopener class). Rest of the patch can stay the same

[issue17069] HTTP result code in urllib2.urlopen() file object undocumented

2013-02-01 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17069 ___ ___ Python-bugs-list

[issue12411] cgi.parse_multipart is broken on 3.x

2013-01-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: I updated the patch addressing Ezio's comments in the review system and also condensed the tests. This fixes the parse_multipart's byte handling at some level. The docstring of parse_multipart say that, this should be deprecated in favor of FieldStorage

[issue12411] cgi.parse_multipart is broken on 3.x

2013-01-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: I personally think, that the grey area of multipart form encoding and trying to use email's updated features for parsing was holding it, not the tests. This can be submitted IMO after looking at the related bugs, I shall do a review on this one today

[issue16909] urlparse: add userinfo attribute

2013-01-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: If it does go in, due the RFC requirement, then it would be only in 3.4 (default branch) and the feature may not be backported. Without reading the RFC section, I have an intuitive -1 for this proposal because the suggestion may be a corner case rather than

[issue16904] Avoid unnecessary and possibly unsafe code from http.client.HTTPConnection.send

2013-01-09 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16904 ___ ___ Python-bugs-list

[issue5066] IDLE documentation for Unix obsolete/incorrect

2013-01-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: Regardless of the topic of merge, the suggested improvements for both idle.rst and help.txt are great! Thanks for working the patch, Todd. I am +1 with the changes. If no else has any comments, I can go ahead with committing this. -- nosy: +orsenthil

Re: [issue16871] Cleanup a few minor things

2013-01-05 Thread Senthil Kumaran
Looks good in most of the places, but at some places the parenthesis are of course helpful for cohesiveness, and this can be quite subjective. With these patches, are you in general removing all instances of parenthesis when it is not required or also considering for places where parens may help

[issue16869] makesetup should support .S source files

2013-01-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: Should not this be? *.S) obj=`basename $src .S`.o; cc='$(CC)';; # The filetype extension .S instead .cpp. And, I have less know-how on these, but for my understanding how would non-preprocessed asm files (.s) will be handled? And doc reference to how

[issue16866] libainstall doesn't create $(BINDIR) directory

2013-01-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the fix. The patches fixes it. Since this is a bug fix, it should be backported all the way till 2.7. -- assignee: - orsenthil nosy: +orsenthil stage: - commit review versions: +Python 2.7, Python 3.2, Python 3.3

[issue16866] libainstall doesn't create $(BINDIR) directory

2013-01-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: Digging a little deeper, make libainstall needs $(BINDIR) because of this $(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python$(VERSION)-config *And* that python$(VERSION)-config file refers to the python exe which is available only after bininstall

[issue16866] libainstall doesn't create $(BINDIR) directory

2013-01-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks Benno. I think that making libainstall depend on bininstall is a right solution too. A nod from devs who have committed changes in that area may help. Also, I believe that this is a bug fix and should be ported back upto 2.7. If there are any concerns

[issue16819] IDLE b method completion incorrect

2013-01-01 Thread Senthil Kumaran
Senthil Kumaran added the comment: The patch seems good to me. Please commit it. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16819

[issue16747] Remove 'file' type reference from 'iterable' glossary entry

2013-01-01 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hello Zachary, What'wrong with referencing :class:`file` for iterable? I find it as OK. Also if it needs to be corrected, the reference could be made for :ref:`bltin-file-objects` Re grammatical fixes, you could point out which were made as with the reflow

[issue16814] use --directory option of make in describing how to build the docs

2013-01-01 Thread Senthil Kumaran
Senthil Kumaran added the comment: I find, cd Doc easy to remember as well. If make tricks can be used then I hope readers note it rather than be exposed via Documentation. Chris's patch is helpful to me, but still I may not vote a +1 for it to be in Documentation. thanks. On Sun, Dec 30, 2012

[issue16747] Remove 'file' type reference from 'iterable' glossary entry

2013-01-01 Thread Senthil Kumaran
Senthil Kumaran added the comment: Oh Okay, Thanks! I was checking it against 2.7! On Tue, Jan 1, 2013 at 11:48 AM, R. David Murray rep...@bugs.python.orgwrote: R. David Murray added the comment: senthil: the file type doesn't exist any more in python3. -- nosy: +r.david.murray

[issue16747] Remove 'file' type reference from 'iterable' glossary entry

2013-01-01 Thread Senthil Kumaran
Senthil Kumaran added the comment: I reviewed the patch. Changes LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16747 ___ ___ Python-bugs

Re: [issue13810] refer people to Doc/Makefile when not using 'make' to build main documentation

2013-01-01 Thread Senthil Kumaran
I think, the the URLs on this page are correct ( or have been corrected since the opening of this issue) - http://hg.python.org/devguide/file/20333d160f4e/documenting.rst If anything needs to be changed, then a patch would be helpful. On Sat, Dec 29, 2012 at 8:48 AM, Tshepang Lekhonkhobe

[issue1674555] sys.path in tests contains system directories

2012-12-31 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1674555 ___ ___ Python-bugs-list

[issue16827] Remove the relatively advanced content from section 2 in tutorial

2012-12-31 Thread Senthil Kumaran
Senthil Kumaran added the comment: +1 from me as well. I am also adding Eric who might have views on the customization part which added by him. -- nosy: +eric.araujo, orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue16434] SocketServer call shutdown in the wrong way

2012-12-31 Thread Senthil Kumaran
Senthil Kumaran added the comment: Looks an invalid bug to me as well. request is a socket.socket object and has shutdown method taking a single argument. The error pasted in the report leads me to believe if the shutdown_request call is not thread-safe and it is ending up called shutdown

[issue16702] Force urllib2_localnet test not to use http proxies

2012-12-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: Jeff, Thanks for raising this issue. The aspect of skipping localhost for proxies in urllib2_localnet tests can be handled in a different way as well, namely by setting the environment varible NO_PROXY to *. By this the skip_proxies in urllib2 returns True

[issue16702] Force urllib2_localnet test not to use http proxies

2012-12-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in all branches of CPython. Thanks. -- assignee: - orsenthil resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16702

[issue9022] TypeError in wsgiref.handlers when using CGIHandler

2012-12-25 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Add fixups for encoding problems to wsgiref ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue16713] tel URIs should support params

2012-12-24 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in all codelines. Thank you! -- assignee: - orsenthil resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16713

[issue15701] AttributeError from HTTPError when using digest auth

2012-12-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Okay. this is fixed in all versions of python. Sorry for the delay. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15701

[issue15701] AttributeError from HTTPError when using digest auth

2012-12-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Even though 2.x is in security fix mode, this can be fixed by a overriding the base class's info method in the HTTPError class and returning the .hdrs attribute instead of .headers. -- Added file: http://bugs.python.org/file28273/Issue1571.patch

[issue16634] urllib.error.HTTPError.reason is not documented

2012-12-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for raising the bug and patch, Berker Peksag. Fixed in all versions. -- nosy: +orsenthil resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16634

[issue12614] Allow to explicitly set the method of urllib.request.Request

2012-11-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hello Miki Tebeka, The change requested by this issue (and provided by the patch) is already in place in 3.3. This was committed as part of issue1673007 has the same behavior too. I am closing this as duplicate. Thank you, Senthil -- resolution

[issue16450] test_missing_localfile masks problems in urlopen

2012-11-10 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- assignee: - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16450

[issue16388] Urllib screws up capitalization in User-Agent HTTP Header

2012-11-07 Thread Senthil Kumaran
Senthil Kumaran added the comment: Calvin. - I shall act upon old bug. The tricky nature of backwards compatibility sometimes let's it stale because we can not come t a good conclusion. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org

[issue16423] urllib data URL recipe

2012-11-06 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- assignee: docs@python - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16423

[issue16301] localhost() and thishost() in urllib/request.py

2012-10-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is fixed in 3.3 and 3.2 3.2 5e71f2712076 3.3 30547e2cd04d -- resolution: - fixed status: open - closed versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16301

[issue16250] URLError invoked with reason as filename

2012-10-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is fixed in all versions now. -- assignee: - orsenthil resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue16300] Windows raises ValueError for file:///file/not/exists instead of URLError

2012-10-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: Buildbot issues are taken care. They are green for while. Tests have been backported 3.3 and 3.2 as well. 3.2 5e71f2712076 3.3 30547e2cd04d -- resolution: - fixed stage: - committed/rejected status: open - closed

[issue10836] urllib.request.urlretrieve calls URLError with 3 args

2012-10-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: This has been backported. 3.2 5e71f2712076 3.3 30547e2cd04d -- assignee: - orsenthil resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10836] urllib.request.urlretrieve calls URLError with 3 args

2012-10-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Nope, I have backport it to other versions. I shall close it then. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10836

[issue16301] localhost() and thishost() in urllib/request.py

2012-10-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Serhiy Storchaka added the comment: +tmp_fileurl = 'file://localhost' + tmp_file tmp_fileurl = 'file://localhost/' + tmp_file.replace(os.path.sep, '/') Ok, I realized the mistake. 'file://localhost' + tmpfile is getting expanded to 'file

[issue16301] localhost() and thishost() in urllib/request.py

2012-10-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Buildbot still failing, but due to different reason. PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'c:\\users\\buildbot\\appdata\\local\\temp\\tmpwwvqao' http://buildbot.python.org/all

[issue16300] Windows raises ValueError for file:///file/not/exists instead of URLError

2012-10-22 Thread Senthil Kumaran
New submission from Senthil Kumaran: From the Buildbot failure - http://buildbot.python.org/all/builders/x86%20XP-4%203.x/builds/7573/steps/test/logs/stdio I remember that we restricted the access for file:// scheme to localhost only for Windows/Cygwin. In terms of exception raised it could

[issue16301] localhost() and thishost() in urllib/request.py

2012-10-22 Thread Senthil Kumaran
New submission from Senthil Kumaran: localhost() returns a string and thishost() returns tuple. In urllib/request.py, for file:// protocol, there is a verification to check to if the host is in the localhost and check happens: socket.gethostbyname(host) in (localhost() + thishost

[issue16302] Fix ResourceWarning in Lib/test/test_urllib.py

2012-10-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: thanks for the bug-report/patch. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16302

[issue16300] Windows raises ValueError for file:///file/not/exists instead of URLError

2012-10-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: The problem is here: if url[:2] == '//' and url[2:3] != '/' and url[2:12].lower() != 'localhost/': raise ValueError(file:// scheme is supported only on localhost) On Unix like systems url[2:3] == '/', that is path starts with '/' and this ValueError

[issue16301] localhost() and thishost() in urllib/request.py

2012-10-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: Serhiy: Yes. I stand corrected. That snippet suggestion was my mistake. I think, wrapping the test is better than changing the return of localhost. It would always return a single value. Thanks. -- ___ Python

[issue16302] Fix ResourceWarning in Lib/test/test_urllib.py

2012-10-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in 478cda291bbc Berker - with urlopen(tmp_fileurl) as fobj: self.assertTrue(fobj) is enough when using context manager as the fobj gets closed automatically at exiting of context. Thanks. -- resolution: - fixed status: open

[issue16250] URLError invoked with reason as filename

2012-10-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: The change in 49de26395d1a addresses the buildbot failure. I have given a run again. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16250

[issue16250] URLError invoked with reason as filename

2012-10-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: The change I had made for fixing the windows buildbot had not fixed it. I am skipped (1f92315d9568) the test on windows, investigating the reason for windows behavior and I shall remove the skiptest on windows after fix

[issue10836] urllib.request.urlretrieve calls URLError with 3 args

2012-10-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: Here is the patch which captures both HTTPError and URLError at the open_file and thus preventing multiple exceptions to be raised ( URLError and next IOError). This can go in 3.4 and since this is bug, where correct exception is not being caught and wrong

[issue10836] urllib.request.urlretrieve calls URLError with 3 args

2012-10-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: This one is fixed in 3.4. I can see the previous versions raised IOError exception and it is not a good idea to change by backporting. But the wrong arguments on URLError should be fixed tough. -- ___ Python

[issue16250] URLError invoked with reason as filename

2012-10-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: This patch fixed these URLError wrong invocation issue and adds some tests for testing those it. I noticed that some of these were in the dead-end of the code, like checking if url is not a str (it is always, unwrap makes it a str if otherwise). Those

[issue16247] Report failing url in URLError?

2012-10-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: The URLError changes gone in as part of fix for issue10836 should give e.filename and e.reason. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16247

[issue16250] URLError invoked with reason as filename

2012-10-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is fixed in 3.4. I shall backport to other branches. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16250

[issue10836] urllib.request.urlretrieve calls URLError with 3 args

2012-10-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: @Ezio, regarding msg172988. That's embarrassing. It should be fixed soon. Review on the patch, how about having the strerror and filename from the exception? -raise URLError(e.errno, e.strerror, e.filename) +raise URLError(e.strerror

[issue16250] URLError invoked with reason as filename

2012-10-16 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16250 ___ ___ Python-bugs-list

[issue10050] urllib.request still has old 2.x urllib primitives

2012-10-13 Thread Senthil Kumaran
Senthil Kumaran added the comment: Only the classes which are marked as deprecated are allowed removed in the next release. So the ones which we marked as deprecated in 3.3 can safely go in 3.4. URLopener and FancyURLopener AFAIR had some dependency/ usage, deprecating those may require some

[issue16088] http.server's send_error could set the content-length of the error body

2012-10-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: I took the privilege of testing, adding news and docs and committing it. Thank you! -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http

[issue15922] make howto/urllib2.rst doctests pass

2012-10-09 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15922

[issue16088] http.server's send_error could set the content-length of the error body

2012-10-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: +1 to this change. It may be helpful in the cases like issue15991. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16088

[issue16134] Add support for RTMP schemes to urlparse

2012-10-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: Personally, I want to do away with all those scheme specific stuff, if we can. I have tried previously, but failed due to some backwards incompatibility. 3.4 gives a good chance/time to make those changes to get rid of those scheme specific stuff (again

[issue16134] Add support for RTMP schemes to urlparse

2012-10-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: issue9374 - another related one which should be taken care. Which is simply reverting this: http://hg.python.org/cpython/diff/a0b3cb52816e/Lib/urllib/parse.py and informing in the DOCs that those globals are not available anymore. (But this should also

[issue16095] urllib2 failing with squid proxy and digest authentication

2012-09-30 Thread Senthil Kumaran
Changes by Senthil Kumaran sent...@uthcode.com: -- assignee: - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16095

[issue16013] small csv reader bug

2012-09-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: The patch looks good and is doing the right thing, that is, when the, strict mode is passed, it fails and without strict mode, it is printing the parsed list. -- nosy: +orsenthil ___ Python tracker rep

<    3   4   5   6   7   8   9   10   11   12   >