[issue9721] urlparse.urljoin() cuts off last base character with semicolon at url start

2010-12-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in r87329, r87330 and r87331. Thanks for the patch Wes, that was proper. -- resolution: accepted -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python track

[issue10721] Remove HTTP 0.9 server support

2010-12-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: If a client sends a request without specifying the version, GET /, then the Python server should behave like other common servers are behaving, namely support rfc 1945 for HTTP 1.0 spec and return the response without headers. Removing the HTTP 0.9 from the

[issue4493] urllib2 doesn't always supply / where URI path component is empty

2010-12-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: Wes, I forgot to address your last comment. HTTPClient follows HTTP Spec for requests and responses. When it is used, the request is on the PATH and the code there checks if the path does not exist does a request on '/'. It is not appropria

[issue6791] httplib read status memory usage

2010-12-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: In the morning, I had a comment on the patch wondering why read _MAXLENGH + 1 and then check for len of header > _MAXLENGH. Instead of just reading _MAXLENGH (and if the length matched rejecting). ( Looks like it did not go through). I think that either

[issue3243] Support iterable bodies in httplib

2010-12-19 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is committed in r87399. Documentation and NEWS is added. Thanks for the patch and review comments. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Pytho

[issue3243] Support iterable bodies in httplib

2010-12-19 Thread Senthil Kumaran
Senthil Kumaran added the comment: Xuanji, Thanks for the comments on 'data' being bytes. I had just cared to add the feature information. I think that data detail should have been updated too. I think for your other two questions, we discussed it msg123051 - socket in py3k ha

[issue3566] httplib persistent connections violate MUST in RFC2616 sec 8.1.4.

2010-12-19 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue3566> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2275] urllib2 header capitalization

2010-12-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: I think, we need to move forward with this. It is one of the earliest i worked on. I shall look at John's patch and look through it's inclusion in the code. -- assignee: facundobatista -> orsenthil _

Re: [issue10587] Document the meaning of str methods

2010-12-22 Thread Senthil Kumaran
On Tue, Dec 14, 2010 at 03:42:17PM +, Alexander Belopolsky wrote: > I am attaching a patch that expands the documentation of isalnum, > isalpha, isdecimal, isdigit, isnumeric, islower, isupper, and > isspace. I did not change isidentifier or isprintable because their ... > redundant checks for

[issue10759] HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. &#hearts; )

2010-12-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes, I too agree that HTMLParser.unescape() should split-out malformed char-ref just as other browsers do. But, as unescape function has undocumented/unexposed for releases, I am not sure making it exposed is a good idea. HTMLParser is more for event based

Re: [issue4496] misleading comment in urllib2

2010-12-23 Thread Senthil Kumaran
On Thu, Dec 23, 2010 at 07:53:01PM +, R. David Murray wrote: > The sorting is based on a 'handler_order' attribute, by the way, and > presumably does control the order in which they are applied. Yes. Exactly. ___ Python-bugs-list mailing list Unsubs

[issue10753] request_uri method of wsgiref module does not support RFC1808 params.

2010-12-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Wed, Dec 22, 2010 at 12:20:24AM +, R. David Murray wrote: > Presumably all that is needed is to add ';' to 'safe' in the call > that encodes PATH_INFO? Well, that is what is required in order for the quote function call to ig

[issue3243] Support iterable bodies in httplib

2010-12-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: A mistake with Content-Length in the previous commit resolved in revision 87469. -- ___ Python tracker <http://bugs.python.org/issue3

[issue10671] urllib2 redirect to another host doesn't work

2010-12-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Closing this as Invalid, because in the latest code, if the Host header is not explicitly specified by the request, then it is added to unredirected headers and if it explicitly specified by the request, then it is taken into account when the redirection

Re: [issue9893] Usefulness of the Misc/Vim/ files?

2010-12-23 Thread Senthil Kumaran
On Sun, Dec 12, 2010 at 09:52:27PM +, Brett Cannon wrote: > At this point I'm willing to either hand maintenance of the files > over to someone else or to delete the files and shift what we point > people at. I think, just pointing to the script at vim.org location is a good idea. It is mainta

[issue10753] request_uri method of wsgiref module does not support RFC1808 params.

2010-12-27 Thread Senthil Kumaran
Senthil Kumaran added the comment: I agree that semi-colon separated segments (params) can be in PATH portion of the url. I was trying to find out, how a path;params would be useful in wsgiref request_uri's PATH_INFO variable , wherein I assumed PATH_INFO should be a file-system path

[issue10759] HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. &#hearts; )

2010-12-28 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed this in r87542 in (py3k). unescape is undocumented helper method, so no docs are added. There was already an issue ( Issue6662) on malformed charref handling and it is fixed. -- resolution: -> fixed stage: patch review -> committed/re

[issue10759] HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. &#hearts; )

2010-12-28 Thread Senthil Kumaran
Senthil Kumaran added the comment: r87544 (release27-maint) and r87545 (release31-maint). -- status: open -> closed ___ Python tracker <http://bugs.python.org/issu

[issue10753] request_uri method of wsgiref module does not support RFC1808 params.

2010-12-28 Thread Senthil Kumaran
Senthil Kumaran added the comment: r87564 (py3k), r87565 (release31-maint) and r87566 (release27-maint). Just a Note. These kind of minor changes have many a times resulted in regression for developers who relied upon previous bad behavior. I have added NEWS to explain this change clearly

[issue9893] Usefulness of the Misc/Vim/ files?

2010-12-29 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Mon, Dec 27, 2010 at 07:59:46PM +, Brett Cannon wrote: > But if you have a local copy of the Vim files from the community > what is preventing you from editing them for new keywords and > sending a patch to the maintainer so that the re

[issue10793] hashlib.hash.digest() documentation incorrect re return type

2010-12-29 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in r87573 and r87574 -- nosy: +orsenthil resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker <http://bugs.python

Re: [issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-01-02 Thread Senthil Kumaran
If you provide some tests augumenting the currently existing tests test_htmlparser.py and also ensure that no existing test breaks, it would be help better to review the patch. I do see some changes made to the regex and parsing. So tests would definitely help. ___

[issue10817] urllib.request.urlretrieve never raises ContentTooShortError if no reporthook

2011-01-03 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue10817> ___ ___ Python-bugs-list mai

[issue10860] urllib2 crashes on valid URL

2011-01-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Fri, Jan 07, 2011 at 07:14:30PM +, Shawn Ligocki wrote: > > I think the problem is that "http://118114.cn"; says it redirects to > "http://www.118114.cn:";, but it seems like urllib2 should be able to > deal with tha

[issue10860] Handle empty port after port delimiter in httplib

2011-01-08 Thread Senthil Kumaran
Senthil Kumaran added the comment: The title got reset by my previous response. Changing it again. I vote for closing this report as Invalid as I see that the error message which is raised is proper and meaningful. httplib.InvalidURL: nonnumeric port: '' -- priority: nor

[issue3243] Support iterable bodies in httplib

2011-01-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hi Georg, In the previous comment, I had written that 'let me see if we have to accommodate those "very special case" where data can be a zero length string just to accommodate the mistake it was present in the earlier version.' More, I

[issue3243] Support iterable bodies in httplib

2011-01-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the note. I shall some details to the NEWS entry before the release. Closing this report. -- priority: critical -> low status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue3243] Support iterable bodies in httplib

2011-01-15 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- priority: low -> normal ___ Python tracker <http://bugs.python.org/issue3243> ___ ___ Python-bugs-list mailing list Unsubscri

[issue10926] Some Invalid Relative Imports succeed in Py 3.0 & 3.1 [& correctly fail in 3.2rc1]

2011-01-17 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue10926> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10639] reindent.py converts newlines to platform default

2011-01-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Why is reindent.py translating the whole file to platform default newline such a bad thing? Could not it be considered as helpful behavior, especially in the case where the user has mixed EOLs by mistake? -- nosy: +orsenthil

[issue1075356] exceeding obscure weakproxy bug

2011-01-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: I find this problem with 3.x and not with 2.x codeline -- nosy: +orsenthil versions: +Python 3.1, Python 3.2 -Python 2.7 ___ Python tracker <http://bugs.python.org/issue1075

Re: [issue10799] Improve webbrowser.open doc (and, someday, behavior?)

2011-01-24 Thread Senthil Kumaran
On Wed, Jan 12, 2011 at 12:23:31AM +, Éric Araujo wrote: > > I thought of adding 'http://' if not present but that would > > disable opening files in a file browser. > > I think that’s a Windows-specific behavior, not a promise of the > *web*browser module. If being lenient with URLs which do

[issue10993] HTTPSConnection does not close when call close() method

2011-01-24 Thread Senthil Kumaran
Senthil Kumaran added the comment: Can you provide a test case which actually illustrates that zombie socket connections present after the HTTPS Connection and Close? I see the logic in your patch. But I don't see no left over unclosed connections upon ssl.close either. --

[issue10993] HTTPSConnection does not close when call close() method

2011-01-24 Thread Senthil Kumaran
Changes by Senthil Kumaran : Removed file: http://bugs.python.org/file20502/unnamed ___ Python tracker <http://bugs.python.org/issue10993> ___ ___ Python-bugs-list mailin

[issue10993] HTTPSConnection does not close when call close() method

2011-01-24 Thread Senthil Kumaran
Senthil Kumaran added the comment: I think, we are facing a platform specific bug here. I had tried similar program earlier and I tried your attached snippet with python 2.6.6 and release27-maint branch and I dont see the zombie sockets on Ubuntu 10.10

[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-01-24 Thread Senthil Kumaran
Senthil Kumaran added the comment: Here is a patch (against release27-maint) for to fix this issue. BTW,what is the best way to check for case insensitive file-system? The test here merely checks if sys.platform returns mac, darwin or win32. -- keywords: +patch nosy: +orsenthil Added

[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-01-24 Thread Senthil Kumaran
Senthil Kumaran added the comment: I would also add 'cygwin' to the list. I am not sure about the behavior of OpenVMS or other less prevalent file systems. -- ___ Python tracker <http://bugs.python.o

Re: [issue10838] subprocess __all__ is incomplete

2011-01-25 Thread Senthil Kumaran
On Thu, Jan 06, 2011 at 12:15:26AM +, Antoine Pitrou wrote: > IMO they should all be prefixed with an underscore. Greg? > +1 to this suggestion. It would make it consistent with expectations. But yeah, I also think that all public methods should be in __all__ is not a guarantee. _

[issue11082] ValueError: Content-Length should be specified

2011-02-02 Thread Senthil Kumaran
Senthil Kumaran added the comment: The POST data should be bytes. So in the attached test case, instead of request = urllib.request.Request('http://does.not.matter', 'foo=bar') it should be: request = urllib.request.Request('http://does.not.matter', b'foo

[issue11082] ValueError: Content-Length should be specified

2011-02-04 Thread Senthil Kumaran
Senthil Kumaran added the comment: For this particular issue, I think, it is good idea to disallow str explicitly, instead of letting it go through the Iterable and raise a ValueError with a different message. -- ___ Python tracker <h

[issue11063] uuid.py module import has heavy side effects

2011-02-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: Kenny, I don't see a problem with uuid is *imported*, it just creates a couple of STANDARD UUID class objects for use later. And this seems to just set the number and validates it. I don't see any subprocess calls performed. Perhaps you were re

[issue11130] SocketServer: server_address is... a socket

2011-02-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: Unable to determine the bug here. If you have questions with using python, please ask python-l...@python.org -- nosy: +orsenthil stage: -> committed/rejected status: open -> closed type: -> behavior _

[issue11153] urllib2 basic auth parser handle unquoted realm in WWW-Authenticate header

2011-02-09 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue11153> ___ ___ Python-bugs-list mai

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Sat, Feb 5, 2011 at 12:33 AM, Georg Brandl wrote: > > Then let us do that. > > Senthil, what about urlencode of bytes values returning a str? > Sorry, the late response. I needed some time to look at this one and I could only do it toda

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Here is a patch to resolve this issue. Let me know if it okay to commit.(Or feel free to commit too). -- stage: -> patch review Added file: http://bugs.python.org/file20732/issue11082.diff ___ Python trac

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Victor - It does not change the API. Only that the ValueError message which had a confusing message that "for iterable data of type " is made clear that POST should not be a str. Yes, a TypeError instead of ValueError would be more approp

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Here is the patch with addressing the comments. 1. It should be TypeError instead of ValueError when str is rejected. We introduced ValueError for this release only, so there is no breakage here. 2. Informed the user that string should be encoded to bytes

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Senthil Kumaran
Changes by Senthil Kumaran : Removed file: http://bugs.python.org/file20740/Issue11082-2.patch ___ Python tracker <http://bugs.python.org/issue11082> ___ ___ Python-bug

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: patch with Docs :ref: to proper section. -- Added file: http://bugs.python.org/file20741/issue11082-2.diff ___ Python tracker <http://bugs.python.org/issue11

[issue11082] ValueError: Content-Length should be specified

2011-02-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks. Committed in r88394. Regarding the encoding information. An explanation of this sort might be helpful. The string can be encoded using ISO-8859-1 which is the default encoding for POST data or the user can also encode using a custom encoding , in

[issue7305] urllib2.urlopen() segfault using SSL on Solaris

2011-02-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the update on this issue. -- nosy: +orsenthil resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue1173475] __slots__ for subclasses of variable length types

2011-02-15 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- keywords: -after moratorium resolution: -> wont fix ___ Python tracker <http://bugs.python.org/issue1173475> ___ ___ Python-

[issue1498363] Improve super() objects support for implicit method calls

2011-02-15 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- keywords: -after moratorium ___ Python tracker <http://bugs.python.org/issue1498363> ___ ___ Python-bugs-list mailing list Unsub

[issue11220] https sslv3 error 14077417: illegal parameter

2011-02-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: curl (7.21.0) fails with the same error message too for the target website. (Is the server doing anything different. For other HTTPS sites (which also use redirection) urllib.request works fine ) senthil@ubuntu:~/python/py3k$ curl -v https://ui2web1

[issue11220] https sslv3 error 14077417: illegal parameter

2011-02-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: The problem is the server strictly accepts SSLv3 only and urllib and http.client send SSLv23 protocol. (In http/client.py, line 1077) if context is None: # Some reasonable defaults context = ssl.SSLContext

[issue11071] What's New review comments

2011-02-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: Here are couple of Review Comments on What's new document. 1. The logging dictConfig example fails if you try directly out-of-text. The conf file is opened as a 'rb' and json module throws an error as "TypeError: can't use a strin

Re: [issue11071] What's New review comments

2011-02-17 Thread Senthil Kumaran
7461 and I saw that checkin had changes for os.popen only. Thanks for pointing this out. I think #10554 should be referenced where the claim for subprocess.Popen Context Manager support is mentioned. Other comments have been care of. -- Senthil ___ Pytho

[issue11242] urllib.request.url_open() doesn't support SSLContext

2011-02-18 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue11242> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11261] urlopen breaks when data parameter is used.

2011-02-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Sun, Feb 20, 2011 at 10:07:31PM +, David Phillips wrote: > The following code works on python 3.1.3 but fails on Python 3.2rc2 > (r32rc2:88269, Jan 30 2011, 14:30:28). (I run Mac OS X, version > 10.6.6.) Is that a real world code? (As i

[issue11280] urllib2 http_error_302 calls undefined "getheaders" method

2011-02-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: Andres, the HTTP Response is sent the xxx_error_xxx method when it is handled by RedirectHandler. Does the below code not work for you in case? I am unable to see the problem here (and also this piece of code is present from 2004!) I am inclined to mark

[issue7776] httplib.py: ._tunnel() broken

2010-01-24 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue7776> ___ ___ Python-bugs-list mai

[issue7776] httplib.py: ._tunnel() broken

2010-01-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: As you noticed, the _set_tunnel method is a private method not intended to be used directly. Its being used by urllib2 when https through proxy is required. urllib2 works like this, it reads HTTPS_PROXY environment variable (in turn includes

[issue2987] RFC2732 support for urlparse (e.g. http://[::1]:80/)

2010-01-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: okay, this should be easy to address. But the more important part is RFC compliance so that this simple change does not break many other things in the wild. -- assignee: -> orsenthil nosy: +orsenthil ___ Pyt

[issue5673] Add timeout option to subprocess.Popen

2010-01-27 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue5673> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1225769] Proposal to implement comment rows in csv module

2010-02-03 Thread Senthil Kumaran
Senthil Kumaran added the comment: Here is another -1 for this proposed feature. Having a comments in the csv fields and providing a way to deal will complicate matters more than required. Different suggestions of how to accomplish it has been suggested here. As others, I too recommend

[issue3819] urllib2 sends Basic auth across redirects

2010-02-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: Ok, in order to fix this bug, urllib2 should only send the cookies and not send the auth info across the the redirects. Yup, let me take this up. -- assignee: -> orsenthil resolution: -> accepted ___

[issue7904] urllib.urlparse mishandles novel schemes

2010-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Does s3 stand for the amazon s3 services? urlparse does not have it under its list of known schemes yet. Does s3 have any specifications as such or is aligned towards any of the known schemes (like http or ftp)? s3 is valid scheme name according to rfc 3986

[issue7904] urlparse.urlsplit mishandles novel schemes

2010-02-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: Hello Mark, Thanks for the patch. However there are reasons why the check is: "if scheme in uses_netloc and url[:2] == '//':" It cannot be replaced by just url[:2] == '//' as in your patch. Different protocols have different

[issue7909] os.path.abspath(os.devnull) returns \\\\nul should be nul?

2010-02-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: >From the bug report, it look likes its specific to windows, not OS X. -- nosy: +orsenthil ___ Python tracker <http://bugs.python.org/iss

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: What is the (Apple Inc. build 5646) (dot 1) vs normal (Apple Inc. build 5646). ? While, ronald.oussoren did make a lot some changes recently (r78149 to r78152).This fix could have been a side-effect of one of it, thought I could not find the direct

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: please not remove the nosy list. ( I guess, you did it by accident). let's wait for ronald's response. -- nosy: +loewis, michael.foord, orsenthil, ronaldoussoren ___ Python tracker <http://bu

[issue7904] urlparse.urlsplit mishandles novel schemes

2010-02-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in the r78234 and merged back to other branches. I fell back to RFC's definition of scheme, as anything before the ://. I did not see the need to add s3 specifically as a valid scheme type, because s3 itself is not registered a schemetype. So, th

[issue7751] urllib.urlopen("///C|/foo/bar/spam.foo") IOError: [Errno 22]

2010-02-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: cgohlke, thanks for the patches and sorry for the delay. The fix however is not to replace the %HH character of '|' with '|', in the nturl2path, but the keep the '|' as safe character in the urllib.urlopen. -

[issue7751] urllib.urlopen("///C|/foo/bar/spam.foo") IOError: [Errno 22]

2010-02-20 Thread Senthil Kumaran
Senthil Kumaran added the comment: The reason the problem was appearing in windows was, it is where, the | is normally observed in URLS, Without | being a safe character, that is it can appear literally in the url, the open method was translating it to %7C. Christopher's patch w

[issue7399] Possible bug in Python Tutorial

2010-02-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in r78325, r78326. -- assignee: georg.brandl -> orsenthil nosy: +orsenthil resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.o

[issue7920] urllib2.HTTPRedirectHandler incorrect redirect

2010-02-22 Thread Senthil Kumaran
Senthil Kumaran added the comment: I disagree with this bug report. First the responsibility of checking if something is not malicious URL lies at the application/client end, urllib in its redirection never urlopen()'s the redirected url, so you are not harmed in anyway. If you wanted

[issue6452] urllib2.Request() will not work with long authorization headers

2010-02-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: There is a OLD Known issue that base64.encodestring will insert in a line-break in the authorization header. See Issue1574068 I fear, you might have done something like this. base64string = base64.encodestring('%s:%s' %(username,pa

[issue5475] urllib2.getproxies not documented

2010-02-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: urllib.getproxies() might be helpful to be documented too. I have added documentaion to this helper function in the r78457 (trunk), r78458, r78459, r78460. -- resolution: -> fixed status: open ->

[issue6631] urlparse.urlunsplit() can't handle relative files (for urllib*.open()

2010-02-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: The bug here seems to me that urllib.urlopen() should not allow a relative file path like the one specified. f='./rel/path/to/file.html urllib2's behavior seems proper that it is raising an Exception. According to the RFCs the local files are to be

[issue7540] urllib2 request does not update content length after new add_data

2010-03-06 Thread Senthil Kumaran
Senthil Kumaran added the comment: Change is reverted from other branches too. Discussed in IRC, that changes made to an existing API like add_data,may break some existing applications, even if its done to prevent unsupported usage. Specifically, in mechanize's case, it was not reusin

[issue7291] urllib2 cannot handle https with proxy requiring auth

2010-03-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: In this ticket, setting the authentication using a ProxyBasicAuthHandler is not yet addressed yet. (this was informed in the last note). Reopening this one to track it. -- resolution: fixed -> accepted status: closed ->

[issue8123] TypeError in urllib when trying to use HTTP authentication

2010-03-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes, that seems to be case. When username:password is present in the url string, opener bytes string not being passed to the base64encode function. -- assignee: -> orsenthil nosy: +orsenthil resolution: -> ac

[issue8143] urlparse has a duplicate of urllib.unquote

2010-03-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes, the reason for having the unquote verbatim was it created a circular reference otherwise. This was done when parse_qsl was moved from cgi module to the urlparse module. I would also like to know more on what RDM points out, tough I have seem some

[issue8135] urllib.unquote doesn't decode mixed-case percent escapes

2010-03-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: I reviewed the patch: +_hexdig = '0123456789ABCDEFabcdef' +_hextochr = dict((a+b, chr(int(a+b,16))) for a in _hexdig for b in _hexdig) is really a neat way to generate the dict of mixed-case percent escape to use with to unquote. I shall commit th

[issue8163] DictionaryServices module broken in python2.6 and later

2010-03-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: This module is not part of Python stdlib. MacOSX might have bundled it by default. Reporting it to Apple might help. -- nosy: +orsenthil resolution: -> invalid status: open -> closed ___ Python tracker

[issue8135] urllib.unquote doesn't decode mixed-case percent escapes

2010-03-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed this in r79047. If we are to backport this to release26-maint, we need barry's approval. Barry, any thoughts? The change is a minor improvement, we have lived with normal case percent escape for long, mixed case would be bonus in rele

[issue8209] OptionParser keyword arg 'epilog' not mentioned in the docs

2010-03-23 Thread Senthil Kumaran
New submission from Senthil Kumaran : I was looking for some option in optparse module which will allow me to add custom help text after the generated help. Realized that OptionParser class has a keyword argument 'epilog' for the same purpose. But this is not been explai

[issue8209] OptionParser keyword arg 'epilog' not mentioned in the docs

2010-03-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in revision 79329. -- resolution: -> fixed ___ Python tracker <http://bugs.python.org/issue8209> ___ ___ Python-

[issue8209] OptionParser keyword arg 'epilog' not mentioned in the docs

2010-03-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: merged into release26-maint branch - 79331 -- ___ Python tracker <http://bugs.python.org/issue8209> ___ ___ Python-bugs-list m

[issue8238] Proxy handling

2010-03-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: How are setting up and using your proxy? It would also help you discuss your approach at python-h...@python.org and if you see any specific issues, raise it in the bug report. -- nosy: +orsenthil ___ Python

[issue8209] OptionParser keyword arg 'epilog' not mentioned in the docs

2010-03-29 Thread Senthil Kumaran
Senthil Kumaran added the comment: merged into py3k in r79333 and release31-maint revision 79490. This specific issue can be closed. But yes, I agree with issue 8158, there is a lot in OptParse Module documentation that could be improved and be made more helpful. If I have any thing more, I

[issue8135] urllib.unquote doesn't decode mixed-case percent escapes

2010-03-29 Thread Senthil Kumaran
Senthil Kumaran added the comment: merged into release26-maint as r79492. This issue can be closed. -- status: open -> closed ___ Python tracker <http://bugs.python.org/iss

[issue8158] documentation of 'optparse' module incomplete

2010-03-29 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue8158> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4683] urllib2.HTTPDigestAuthHandler fails on third hostname?

2010-04-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: Okay, This vaguely got out of my mind. Shall come with the tests for HTTPAuthDigest. -- ___ Python tracker <http://bugs.python.org/issue4

[issue7026] test_urllib: unsetting missing 'env' variable

2010-04-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: Sridhar, I am unable to reproduce this bug in the 3.x (py3k and release31-maint) on 64 bit linux. I glance at the code to see any underpinnings for this RuntimeError and could not find any at the place the exception occurred. Is it anyway related to other

[issue8262] bad wording in error message attempting to start a Thread twice

2010-04-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes, the proposed wording is more suitable in the scenarios when the error is encountered. Also saw there is already a test (test_start_thread_again), which covers this. There is no harm in changing the wording. -- assignee: -> orsenthil n

[issue8262] bad wording in error message attempting to start a Thread twice

2010-04-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed in r79817, r79819 and r79821. Thanks for the report and the patch, Gabriel. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue8319] HTMLparser does not handle call to handle_data when a tag contains no data.

2010-04-05 Thread Senthil Kumaran
Senthil Kumaran added the comment: But changing the HTMLParser.goahead's way to treating tags from if i < j: self.handle_data(rawdata[i:j]) TO if i <= j: self.handle_data(rawdata[i:j] is not the correct way to deal with this problem. Theoretically, whatever it is doing seems correc

[issue8280] urllib2 passes fragment identifier to server

2010-04-05 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil resolution: -> accepted ___ Python tracker <http://bugs.python.org/issue8280> ___ ___ Python-bugs-

[issue8352] imp.find_module of a .py ending dir causes glibc double free crash

2010-04-09 Thread Senthil Kumaran
Senthil Kumaran added the comment: No, that is not bpython interpreter. The a crash report on "python interpreter" observed with imp module when a directory ends with .py. -- nosy: +orsenthil ___ Python tracker <http://bugs.python.

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