[issue24337] Implement `http.client.HTTPMessage.__repr__` to make debugging easier

2020-02-13 Thread Demian Brecht
Change by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker <https://bugs.python.org/issue24337> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12144] cookielib.CookieJar.make_cookies fails for cookies with 'expires' set

2019-03-18 Thread Demian Brecht
Demian Brecht added the comment: @xtreak sure, can do. May not have time to do so today but should be able to do so over the next couple days. -- ___ Python tracker <https://bugs.python.org/issue12

[issue24177] Add https?_proxy support to http.client

2019-02-01 Thread Demian Brecht
Change by Demian Brecht : -- keywords: +patch, patch pull_requests: +11617, 11618 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue24177] Add https?_proxy support to http.client

2019-02-01 Thread Demian Brecht
Change by Demian Brecht : -- keywords: +patch, patch, patch pull_requests: +11617, 11618, 11619 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue24177] Add https?_proxy support to http.client

2019-02-01 Thread Demian Brecht
Change by Demian Brecht : -- keywords: +patch pull_requests: +11617 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue3430] httplib.HTTPResponse documentations inconsistent

2019-01-24 Thread Demian Brecht
Change by Demian Brecht : -- nosy: -demian.brecht ___ Python tracker <https://bugs.python.org/issue3430> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17251] LWPCookieJar load() set domain_specifed wrong

2019-01-24 Thread Demian Brecht
Change by Demian Brecht : -- nosy: -demian.brecht ___ Python tracker <https://bugs.python.org/issue17251> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20911] urllib 'headers' is not a well defined data type

2019-01-24 Thread Demian Brecht
Demian Brecht added the comment: >>> urlopen('https://example.com').info() >>> urlopen('http://example.com').info() >>> urlopen('ftp://speedtest.tele2.net').info() >>> urlopen('file:///path/to/setup.py').info()

[issue20911] urllib 'headers' is not a well defined data type

2019-01-22 Thread Demian Brecht
Demian Brecht added the comment: @R. David Murray Is this issue still valid? Running 3.6 it seems that http and ftp are consistent at any rate (http returns http.client.HTTPMessage and ftp returns email.message.Message). If it's still an issue, could you please elab

[issue12707] Deprecate addinfourl getters

2019-01-20 Thread Demian Brecht
Change by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker <https://bugs.python.org/issue12707> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20582] socket.getnameinfo() does not document flags

2019-01-20 Thread Demian Brecht
Demian Brecht added the comment: What if the docs for socket functions that took system-level flag parameters had links to relevant online man pages? I don't think a single entry at the top of the page would be optimal. I know that I tend to skip the preamble and just go directly t

[issue20582] socket.getnameinfo() does not document flags

2019-01-20 Thread Demian Brecht
Change by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker <https://bugs.python.org/issue20582> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35292] Make SimpleHTTPRequestHandler load mimetypes lazily

2019-01-20 Thread Demian Brecht
Change by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker <https://bugs.python.org/issue35292> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33399] site.abs_paths should handle None __cached__ type

2018-05-01 Thread Demian Brecht
Change by Demian Brecht : -- keywords: +patch pull_requests: +6369 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33399> ___ ___ Py

[issue33399] site.abs_paths should handle None __cached__ type

2018-05-01 Thread Demian Brecht
New submission from Demian Brecht : Echoing an email sent to python-list: I recently ran into an issue using the site package and I wanted to confirm that I'm not doing something wrong here before creating an issue: I have a need to `git subtree` modules into a Django project and then ad

[issue26380] Add an http method enum

2016-02-21 Thread Demian Brecht
Demian Brecht added the comment: > To me, your later throw-in comment about static analyzers might be the most > persuasive point you made Well, we're in agreement there :) As I'd mentioned, at best it's a minor annoyance. I'm entirely on the fence about the use of t

[issue26380] Add an http method enum

2016-02-18 Thread Demian Brecht
Demian Brecht added the comment: > BTW I think it is actually OPTIONS; see review comment. Well, don't I feel silly. Fixed. -- Added file: http://bugs.python.org/file41962/issue26380_2.patch ___ Python tracker <http://bugs.python.org

[issue26380] Add an http method enum

2016-02-18 Thread Demian Brecht
Demian Brecht added the comment: > I can see the advantage of using an enum over a plain string. But you only > get an error at run time, not compile time, if you misspell it. Sure, but at least you're giving static analysis utilities the chance to catch it up front. > And the

[issue26380] Add an http method enum

2016-02-18 Thread Demian Brecht
Demian Brecht added the comment: > I don't have a firm opinion at this point -- can you give a few examples of > how this will help in code? It'll help solely with consistency across projects. Generally, using constants are generally favored over using hardcoded values.

[issue26380] Add an http method enum

2016-02-17 Thread Demian Brecht
Demian Brecht added the comment: If nobody's opposed to the addition, I'll run through the unit tests and replace the hard coded strings. -- keywords: +patch Added file: http://bugs.python.org/file41947/issue26380.diff ___ Python trac

[issue26380] Add an http method enum

2016-02-17 Thread Demian Brecht
New submission from Demian Brecht: Super minor annoyance that I've had over multiple projects is seeing either hard coded strings being used (which is a bit of a no-no in terms of best practices) or each project defining its own set of constants for http methods. Why not just incl

[issue24177] Add https?_proxy support to http.client

2015-10-08 Thread Demian Brecht
Demian Brecht added the comment: Yeah, agreed that it should be opt-in, at least until a major release. I've run into a couple cases where higher level libraries use http.client (or httplib) directly, but don't expose the client directly (not that they should anyways). Because of t

[issue23377] HTTPResponse may drop buffer holding next response

2015-06-07 Thread Demian Brecht
Demian Brecht added the comment: Actually had a few free minutes so stuck a couple minor comments in Rietveld. Will have another go as soon as possible. -- ___ Python tracker <http://bugs.python.org/issue23

[issue24363] httplib fails to handle semivalid HTTP headers

2015-06-02 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker <http://bugs.python.org/issue24363> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24209] Allow IPv6 bind in http.server

2015-05-22 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker <http://bugs.python.org/issue24209> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12319] [http.client] HTTPConnection.request not support "chunked" Transfer-Encoding to send data

2015-05-22 Thread Demian Brecht
Demian Brecht added the comment: FWIW, I was intending to address the issues Rolf raised. Also, I agree that a patch shouldn't knowingly have negative knock-on effects to dependents. -- ___ Python tracker <http://bugs.python.org/is

[issue24255] Replace debuglevel-related logic with logging

2015-05-21 Thread Demian Brecht
Changes by Demian Brecht : -- keywords: +easy ___ Python tracker <http://bugs.python.org/issue24255> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12319] [http.client] HTTPConnection.putrequest not support "chunked" Transfer-Encodings to send data

2015-05-21 Thread Demian Brecht
Demian Brecht added the comment: Thanks for the report Rolf. I'll look into your suggestion for this patch. Antoine: Given beta is slated for the 24th and Martin's legitimate concerns, I think it might be a little hasty to get this in before feature freeze. Knocking it back to 3.6

[issue24255] Replace debuglevel-related logic with logging

2015-05-20 Thread Demian Brecht
New submission from Demian Brecht: Far too many times have I wished that changing the logging output in http.client was controllable through logging configuration rather than code changes modifying a connection's debuglevel. It would be nice if the http package was brought up to date an

[issue12319] [http.client] HTTPConnection.putrequest not support "chunked" Transfer-Encodings to send data

2015-05-20 Thread Demian Brecht
Demian Brecht added the comment: BTW, thanks for the reviews Martin and the nudge Antoine! -- ___ Python tracker <http://bugs.python.org/issue12319> ___ ___ Pytho

[issue12319] [http.client] HTTPConnection.putrequest not support "chunked" Transfer-Encodings to send data

2015-05-20 Thread Demian Brecht
Demian Brecht added the comment: Latest patch should address all outstanding comments. -- Added file: http://bugs.python.org/file39447/issue12319_6.patch ___ Python tracker <http://bugs.python.org/issue12

[issue23377] HTTPResponse may drop buffer holding next response

2015-05-20 Thread Demian Brecht
Demian Brecht added the comment: Added comments to Rietveld. -- ___ Python tracker <http://bugs.python.org/issue23377> ___ ___ Python-bugs-list mailing list Unsub

[issue22931] cookies with square brackets in value

2015-05-19 Thread Demian Brecht
Demian Brecht added the comment: > This needs a review from the people who created and applied the security > patch. + Guido (committed https://hg.python.org/cpython/rev/9e765e65e5cb) -- nosy: +gvanrossum ___ Python tracker <http://bugs.p

[issue12319] [http.client] HTTPConnection.putrequest not support "chunked" Transfer-Encodings to send data

2015-05-19 Thread Demian Brecht
Demian Brecht added the comment: > What's the status on this one? It looks like some review comments need > addressing. That's about it. Unfortunately I've been pretty tied up over the last month and a bit. I'll try to get to hopefully closing this

[issue23377] HTTPResponse may drop buffer holding next response

2015-05-19 Thread Demian Brecht
Demian Brecht added the comment: If nobody else gets to it first, I'll try to get to review this later today or tomorrow. Apologies for the delay on the review Martin, a new baby (coming next month), moving /and/ taking on a new job all at the same time seems to limit free time a l

[issue24177] Add https?_proxy support to http.client

2015-05-13 Thread Demian Brecht
New submission from Demian Brecht: http_proxy and https_proxy are common environment variables used cross platform. Currently, urllib.request has support for it, but http.client does not. It probably should. If support is added to http.client, the handling of proxy environment variables in

[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2015-05-12 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker <http://bugs.python.org/issue17849> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23888] Fixing fractional expiry time bug in cookiejar

2015-05-08 Thread Demian Brecht
Demian Brecht added the comment: LGTM, thanks for the patch! -- nosy: +r.david.murray stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issu

[issue23888] Fixing fractional expiry time bug in cookiejar

2015-05-07 Thread Demian Brecht
Demian Brecht added the comment: I left a small comment around indentation in Rietveld. Also, for the sake of completeness (and for others taking part in this review/commit), I dug through the relevant RFCs and none of them seem to define time as having sub-section resolution

[issue23888] Fixing fractional expiry time bug in cookiejar

2015-05-06 Thread Demian Brecht
Demian Brecht added the comment: Thanks for the follow up on that. In light of your findings, I agree with the path you've taken in your patch (and yeah, you'd have to deal with conversions in the output if you were to take my suggestion). I've left a couple minor comments in

[issue13567] HTTPError interface changes / breaks depending on what was passed to constructor

2015-04-26 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker <http://bugs.python.org/issue13567> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24055] unittest package-level set up & tear down module

2015-04-24 Thread Demian Brecht
New submission from Demian Brecht: There's a feature available via nose that might be nice to have in unittest: package-level setup and teardown functions. Using nose, I can define a setUpModule() method in a test package's __init__.py and it will execute it during the test ru

[issue23930] SimpleCookie doesn't parse comma-only separated cookies correctly

2015-04-17 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker <http://bugs.python.org/issue23930> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23888] Fixing fractional expiry time bug in cookiejar

2015-04-14 Thread Demian Brecht
Demian Brecht added the comment: Changing to "behavior" type as crash is generally used to indicate an interpreter issue. -- nosy: +orsenthil stage: -> patch review type: crash -> behavior ___ Python tracker <http://bugs.py

[issue23888] Fixing fractional expiry time bug in cookiejar

2015-04-14 Thread Demian Brecht
Demian Brecht added the comment: Although it's likely not going to be a high frequency issue (but would be painful to track down when it does become an issue), by doing an int(float(expires)), you're losing the sub-second portion of the expiry. Why not something like this: try:

[issue23350] Content-length is incorrect when request body is a list or tuple

2015-04-13 Thread Demian Brecht
Demian Brecht added the comment: Vincent: The logic to determine content length is undergoing a bit of an overhaul as part of #12319, which I'm hoping to wrap up in the next week or so. -- ___ Python tracker <http://bugs.python.org/is

[issue23377] HTTPResponse may drop buffer holding next response

2015-04-13 Thread Demian Brecht
Demian Brecht added the comment: > I think it's ok to slightly break a non-public API since it's required to fix > an obvious bug. To play devil's advocate here, /is/ this really non-public API? According to documented Python naming conventions, HTTPResponse is part of

[issue23887] HTTPError doesn't have a good "repr" representation

2015-04-08 Thread Demian Brecht
Demian Brecht added the comment: A test really should be added for this. Otherwise, LGTM. -- nosy: +demian.brecht ___ Python tracker <http://bugs.python.org/issue23

[issue23888] Fixing fractional expiry time bug in cookiejar

2015-04-08 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker <http://bugs.python.org/issue23888> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23794] http package should support HTTP/2

2015-04-03 Thread Demian Brecht
Demian Brecht added the comment: @Cory: my own plan was to use your implementation as the baseline and add server support. If you take a crack at it that would be great! -- ___ Python tracker <http://bugs.python.org/issue23

[issue23794] http package should support HTTP/2

2015-04-03 Thread Demian Brecht
Demian Brecht added the comment: +1 to the adding the support for HTTP/2. I would personally like to see a few things happen before that though (which I've been putting some effort into as i can) + refactor http.client to cleanly separate transport from application protocol level + f

[issue8732] Should urrllib2.urlopen send an Accept-Encoding header?

2015-04-02 Thread Demian Brecht
Demian Brecht added the comment: This doesn't seem to be an issue in 3.4+, the following headers are injected in a call to urlopen(): GET / HTTP/1.1 Accept-Encoding: identity Host: example.com User-Agent: Python-urllib/3.4 Connection: close However, this is not the same behaviour in 2.7:

[issue22708] httplib/http.client in method _tunnel used HTTP/1.0 CONNECT method

2015-04-02 Thread Demian Brecht
Demian Brecht added the comment: Thanks for the report and follow up Vova. I've come across this line and it puzzled me as well as to why it's hardcoded. Rather than the hardcoded approach in your patch, I've attached a patch that uses _http_vsn_str which is consistent with oth

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

2015-04-02 Thread Demian Brecht
Changes by Demian Brecht : -- stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issue3566> ___ ___ Python-bugs-list mai

[issue12319] [http.client] HTTPConnection.putrequest not support "chunked" Transfer-Encodings to send data

2015-04-01 Thread Demian Brecht
Changes by Demian Brecht : Added file: http://bugs.python.org/file38797/issue12319_5.patch ___ Python tracker <http://bugs.python.org/issue12319> ___ ___ Python-bug

[issue12319] [http.client] HTTPConnection.putrequest not support "chunked" Transfer-Encodings to send data

2015-03-31 Thread Demian Brecht
Demian Brecht added the comment: Agreed. However, I'm wondering if that should belong in a new issue geared towards further clarifying behaviour of request body types. The patch introduces the behaviour this specific issue was looking, with the largest change being that iterators ma

[issue22931] cookies with square brackets in value

2015-03-31 Thread Demian Brecht
Changes by Demian Brecht : Added file: http://bugs.python.org/file38773/issue22931_2.patch ___ Python tracker <http://bugs.python.org/issue22931> ___ ___ Python-bug

[issue22931] cookies with square brackets in value

2015-03-31 Thread Demian Brecht
Changes by Demian Brecht : -- stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issue22931> ___ ___ Python-bugs-list mai

[issue2211] Cookie.Morsel interface needs update

2015-03-31 Thread Demian Brecht
Demian Brecht added the comment: Set as closed, assuming there's no reason to keep this issue open. -- status: open -> closed ___ Python tracker <http://bugs.python.or

[issue23350] Content-length is incorrect when request body is a list or tuple

2015-03-31 Thread Demian Brecht
Demian Brecht added the comment: If #12319 is accepted, the implementation for Content-Length should also likely be migrated to this issue to be applied to maintenance branches as a bug fix. -- status: pending -> open ___ Python tracker &l

[issue23350] Content-length is incorrect when request body is a list or tuple

2015-03-31 Thread Demian Brecht
Demian Brecht added the comment: The computation of Content-Length has also undergone some refactoring as part of #12319. Setting this as pending until #12319 has been accepted or rejected. If rejected, the implementation specific to generating Content-Length should be migrated here

[issue12319] [http.client] HTTPConnection.putrequest not support "chunked" Transfer-Encodings to send data

2015-03-31 Thread Demian Brecht
Changes by Demian Brecht : Added file: http://bugs.python.org/file38772/issue12319_4.patch ___ Python tracker <http://bugs.python.org/issue12319> ___ ___ Python-bug

[issue23360] Content-Type when sending data with urlopen()

2015-03-31 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker <http://bugs.python.org/issue23360> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2211] Cookie.Morsel interface needs update

2015-03-30 Thread Demian Brecht
Demian Brecht added the comment: Thanks for following up on this David. The changes you've made all look good to me. -- ___ Python tracker <http://bugs.python.org/i

[issue18828] urljoin behaves differently with custom and standard schemas

2015-03-26 Thread Demian Brecht
Demian Brecht added the comment: > The current behaviour when no scheme is present is fairly sensible to me and > should not be changed to do string concatenation nor raise an exception Agreed. Defaulting to relative behaviour makes sense as I imagine that'll be the general use

[issue22931] cookies with square brackets in value

2015-03-25 Thread Demian Brecht
Demian Brecht added the comment: As I understand it, the change should also be applied to security releases as the regression manifested by a security related patch being applied. That said, there may be some debate as there apparently isn't much (if anything) in the way of precedence

[issue2211] Cookie.Morsel interface needs update

2015-03-25 Thread Demian Brecht
Demian Brecht added the comment: Updated patch should address review comments. I did run with David's suggestion as I also noticed that my initial assessment was wrong (thanks for the note/review Berker). -- Added file: http://bugs.python.org/file

[issue23778] Add a visual distinction to multiline versionchanged blocks

2015-03-25 Thread Demian Brecht
Demian Brecht added the comment: Sounds good to me. -- ___ Python tracker <http://bugs.python.org/issue23778> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23778] Add a visual distinction to multiline versionchanged blocks

2015-03-25 Thread Demian Brecht
Demian Brecht added the comment: I noted in #2211 that nested lists are supported by Sphinx, so that solves that specific issue. Perhaps it /may/ still be useful to have this though in order to support multiple paragraphs for more detailed change descriptions when needed? That said, I'

[issue2211] Cookie.Morsel interface needs update

2015-03-25 Thread Demian Brecht
Demian Brecht added the comment: Problem (pretty much) solved. Nested unordered lists are supported. I've updated the versionchanged information to use the list. -- Added file: http://bugs.python.org/file38690/http_cookies_morsel_deprecated_set_2.

[issue2211] Cookie.Morsel interface needs update

2015-03-25 Thread Demian Brecht
Demian Brecht added the comment: FWIW, I created #23778 to address the indentation issue. -- ___ Python tracker <http://bugs.python.org/issue2211> ___ ___ Pytho

[issue23778] Add a visual distinction to multiline versionchanged blocks

2015-03-25 Thread Demian Brecht
New submission from Demian Brecht: This came up during #2211, where a multiline versionchanged entry was suggested. Currently, there is no visual distinction between any but the first line of the description and the rest of the body of the docs. The attached patch adds a consistent level of

[issue2211] Cookie.Morsel interface needs update

2015-03-25 Thread Demian Brecht
Demian Brecht added the comment: > it would be better to consolidate the three adjacent versionchanged entries > into one I created the three versionchanged items because there's no visual distinction between the second and third lines and the rest of the doc tests in the rend

[issue23759] urllib.parse: make coap:// known

2015-03-24 Thread Demian Brecht
Demian Brecht added the comment: I'm also +1 to handling this generically and agree that a well thought out and researched proposal would be required. I did mention in #18228 (http://bugs.python.org/issue18828#msg238363) that I think that a short term solution to this problem could

[issue12319] [http.client] HTTPConnection.putrequest not support "chunked" Transfer-Encodings to send data

2015-03-24 Thread Demian Brecht
Demian Brecht added the comment: Thanks for the review Martin. > However I understand Rolf specifically wanted chunked encoding to work with > the existing urlopen() framework, at least after constructing a separate > opener object. I think that should be practical with the

[issue12319] [http.client] HTTPConnection.putrequest not support "chunked" Transfer-Encodings to send data

2015-03-24 Thread Demian Brecht
Changes by Demian Brecht : Added file: http://bugs.python.org/file38670/issue12319_3.patch ___ Python tracker <http://bugs.python.org/issue12319> ___ ___ Python-bug

[issue23740] http.client request and send method have some datatype issues

2015-03-22 Thread Demian Brecht
Demian Brecht added the comment: FWIW, I've done some additional work to request/send in issue #12319 where I've added support for chunked request encoding. @David > if an iterable is passed in, it must be an iterable of bytes-like objects This specific issue is addressed in

[issue23350] Content-length is incorrect when request body is a list or tuple

2015-03-22 Thread Demian Brecht
Demian Brecht added the comment: @Serhiy: > Content-Length shouldn't be calculated for lists, tuples, and other > non-bytes-compatible sequences. I'd agree with this if it wasn't relatively trivial to calculate. There's no reason that I can think of to exclude

[issue23662] Cookie.domain is undocumented

2015-03-20 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker <http://bugs.python.org/issue23662> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2211] Cookie.Morsel interface needs update

2015-03-20 Thread Demian Brecht
Demian Brecht added the comment: > idmap was removed in 14b65de9b798, translate was removed in 99027c2b3fd2 when > their became unnecessary. I'd venture to say they slipped through the cracks. Following the deprecation procedure here would be favourable IMHO as to give users a

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-19 Thread Demian Brecht
Demian Brecht added the comment: One super minor comment left in Rietveld (py3 patch). Otherwise LGTM. -- ___ Python tracker <http://bugs.python.org/issue23

[issue2211] Cookie.Morsel interface needs update

2015-03-19 Thread Demian Brecht
Demian Brecht added the comment: The attached patch reverts back to the old set() API, ignoring the parameter and adding a deprecation warning. I've also added a few versionchanged and deprecated tags in the Morsel docs. Other than the deprecation note in whatsnew/3.5.rst that was added

[issue23703] urljoin() with no directory segments duplicates filename

2015-03-19 Thread Demian Brecht
Demian Brecht added the comment: Yep, that's a lot cleaner and tests pass. I've updated the patch with that line. Thanks. -- Added file: http://bugs.python.org/file38573/issue23703_1.patch ___ Python tracker <http://bugs.python.o

[issue18828] urljoin behaves differently with custom and standard schemas

2015-03-19 Thread Demian Brecht
Demian Brecht added the comment: Also, I would suggest still including the doc changes proposed by Madison in all versions prior to 3.5. -- ___ Python tracker <http://bugs.python.org/issue18

[issue18828] urljoin behaves differently with custom and standard schemas

2015-03-19 Thread Demian Brecht
Demian Brecht added the comment: >>>> urljoin('mailto:foo@', 'bar.com') > 'mailto:bar.com' > > which seems fairly sensible to me. This is where joining arbitrary protocols gets tricky. Does it make sense to merge non-hierarchical protocols su

[issue23703] urljoin() with no directory segments duplicates filename

2015-03-19 Thread Demian Brecht
Demian Brecht added the comment: Nice work tracking down the commit, thanks for that. I've attached a fix. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file38563/issue23703.patch ___ Python tracke

[issue2211] Cookie.Morsel interface needs update

2015-03-18 Thread Demian Brecht
Demian Brecht added the comment: Thanks for the follow up Serhiy, LGTM. -- ___ Python tracker <http://bugs.python.org/issue2211> ___ ___ Python-bugs-list mailin

[issue18828] urljoin behaves differently with custom and standard schemas

2015-03-17 Thread Demian Brecht
Changes by Demian Brecht : -- stage: -> patch review versions: +Python 3.5 ___ Python tracker <http://bugs.python.org/issue18828> ___ ___ Python-bugs-list mai

[issue18828] urljoin behaves differently with custom and standard schemas

2015-03-17 Thread Demian Brecht
Demian Brecht added the comment: > I haven’t heard any arguments against this option yet, and it didn’t break > any tests. Pre patch: >>> urljoin('mailto:foo@', 'bar.com') 'bar.com' Post patch: >>> urljoin('mailto:foo@', '

[issue2211] Cookie.Morsel interface needs update

2015-03-17 Thread Demian Brecht
Changes by Demian Brecht : -- stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issue2211> ___ ___ Python-bugs-list mai

[issue2211] Cookie.Morsel interface needs update

2015-03-17 Thread Demian Brecht
Demian Brecht added the comment: Thanks for the updates Serhiy. All look good to me. -- ___ Python tracker <http://bugs.python.org/issue2211> ___ ___ Python-bug

[issue12319] [http.client] HTTPConnection.putrequest not support "chunked" Transfer-Encodings to send data

2015-03-17 Thread Demian Brecht
Demian Brecht added the comment: Updated patch changes the following: + Removes support for trailers in requests as they're not supported + If Transfer-Encoding is explicitly set by the client, it's assumed that the caller will handle all encoding (backwards compatibility) + Fixed a

[issue22931] cookies with square brackets in value

2015-03-17 Thread Demian Brecht
Changes by Demian Brecht : Added file: http://bugs.python.org/file38525/issue22931_1.patch ___ Python tracker <http://bugs.python.org/issue22931> ___ ___ Python-bug

[issue22931] cookies with square brackets in value

2015-03-17 Thread Demian Brecht
Changes by Demian Brecht : Removed file: http://bugs.python.org/file38522/issue22931_1.patch ___ Python tracker <http://bugs.python.org/issue22931> ___ ___ Python-bug

[issue22931] cookies with square brackets in value

2015-03-17 Thread Demian Brecht
Demian Brecht added the comment: Thanks for the report Mark, updating this patch to be more backwards compatible was on my to-do list. I've attached a new patch that simply adds the new characters to the legal value set. It does look like that's the commit that introduced this issu

[issue23684] urlparse() documentation does not account for default scheme

2015-03-17 Thread Demian Brecht
Demian Brecht added the comment: +1 to the change, but I'd propose maybe "value of *scheme*" given the tables are inline with both urlsplit and urlparse docs? -- nosy: +demian.brecht ___ Python tracker <http://bugs.pyt

[issue22852] urllib.parse wrongly strips empty #fragment

2015-03-16 Thread Demian Brecht
Demian Brecht added the comment: > I cannot imagine some existing code (other than an exploit) that would be > broken by restoring the empty “//” component; do you have an example? You're likely right about the usage (I can't think of a plausible use case at any rate).

[issue22852] urllib.parse wrongly strips empty #fragment

2015-03-16 Thread Demian Brecht
Demian Brecht added the comment: > I avoided making them positional parameters, as they are not part of the > underlying tuple object. Ignore me, I was off my face and you're absolutely correct. -- ___ Python tracker <http://b

[issue22852] urllib.parse wrongly strips empty #fragment

2015-03-16 Thread Demian Brecht
Demian Brecht added the comment: >>>> urlsplit("evil.com").netloc > '' >>>> urlsplit("evil.com").has_netloc > True >>>> urlunsplit(urlsplit("evil.com")) # Adds “//” back > 'evil.com'

[issue22852] urllib.parse wrongly strips empty #fragment

2015-03-16 Thread Demian Brecht
Demian Brecht added the comment: I've done an initial pass in Rietveld and left some comments, mostly around docs. Here are some additional questions though: Given has_* flags can be inferred during instantiation of *Result classes, is there a reason to have them writable, meaning is th

  1   2   3   4   5   >