[issue9177] ssl.read/write on closed socket raises AttributeError

2013-07-07 Thread Senko Rasic
Senko Rasic added the comment: Here's a patch that adds checks and ValueError raises to SSLSocket.read and SSLSocket.write. My first attempt was to add the check to _checkClosed to mirror the IOBase._checkClosed, but in SSLSocket its semantics are different (the idea is for the subcla

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-07-06 Thread Senko Rasic
Senko Rasic added the comment: Yep, signed. -- ___ Python tracker <http://bugs.python.org/issue6386> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-07-06 Thread Senko Rasic
Senko Rasic added the comment: Patch for modifying the modules part of tutorial with the changes suggested by jamadagni (reworded slightly so the note is outside the itemized list). -- keywords: +patch nosy: +senko Added file: http://bugs.python.org/file30822/tutorial-symlink-syspath

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

2013-07-06 Thread Senko Rasic
Senko Rasic added the comment: The attached test (issue-17324-test-1) reproduces the issue for me on 3.4.0alpha. -- nosy: +senko ___ Python tracker <http://bugs.python.org/issue17

[issue979407] urllib2 digest auth totally broken

2013-07-06 Thread Senko Rasic
Senko Rasic added the comment: Checked with 3.4.0 alpha, works fine. Apart from the tests mentioned, I used the following script to check digest auth: from urllib import request url = 'http://httpbin.org/digest-auth/auth/user/passwd' req = request.R

[issue1052827] filelist.findall should not fail on dangling symlinks

2013-07-06 Thread Senko Rasic
Senko Rasic added the comment: The second patch (proposed fix). -- Added file: http://bugs.python.org/file30809/distutils-symlink-fix.diff ___ Python tracker <http://bugs.python.org/issue1052

[issue1052827] filelist.findall should not fail on dangling symlinks

2013-07-06 Thread Senko Rasic
Senko Rasic added the comment: Here are two patches: * test against py3k test_sdist.py (should crash without a fix) * a proposed fix The proposed fix not only changes lstat, but also changes other relevant paths to actually include dangling symlinks in the filelists. I've split them into

[issue13359] urllib2 doesn't escape spaces in http requests

2013-07-06 Thread Senko Rasic
Senko Rasic added the comment: I vote for the parse method converting the spaces (and only the spaces) explicitly, for the following reasons: * the spaces must be encoded for the server to accept them * no user-encoded url will ever have spaces in them * space quoting is idempotent: quote

[issue18336] codecs: Link to readline module (history) instead of fd.readline()

2013-07-06 Thread Senko Rasic
Senko Rasic added the comment: Here's a patch just removing the reference. Although potentially referencing io.IOBase.readline instead would be more correct, IMHO it'd be just more confusing to users reading the docs. -- keywords: +patch nosy: +senko Added file: http://bugs.