New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compat: (py2) urlparse = urllib.parse (py3) #6262
Conversation
We were mistakenly importing the 'urlparse' function from the Python 2 'urlparse' module, as opposed to the module itself. Correct this. Signed-off-by: Stephen Finucane <stephen@that.guru> Closes: encode#6261
now this has been brought into the spotlight, I'd rather we keep a consistent style and import:
in the renderers. edit: |
We can just use Django's vendored six library, like we do everywhere else. Signed-off-by: Stephen Finucane <stephen@that.guru>
Good call. Done. |
OK, given #6230 this'll be v3.9.1 or not at all. |
I'm sorry to say that at this late point in history I'm so rusty on Python 2 compat that I can't remember the back story here. No doubt, using Thanks. |
That code we're removing is only used in one place and was added as part of the new command. It's been broken from the get-go and should never have been added, given that |
Right. OK. Fine. Thanks. 😊 |
Fair enough. Thanks! |
* compat: (py2) urlparse = urllib.parse (py3) We were mistakenly importing the 'urlparse' function from the Python 2 'urlparse' module, as opposed to the module itself. Correct this. Signed-off-by: Stephen Finucane <stephen@that.guru> Closes: encode#6261 * compat: Remove 'compat.urlparse' We can just use Django's vendored six library, like we do everywhere else. Signed-off-by: Stephen Finucane <stephen@that.guru>
We were mistakenly importing the 'urlparse' function from the Python 2
'urlparse' module, as opposed to the module itself. Correct this.
Signed-off-by: Stephen Finucane stephen@that.guru
Closes: #6261