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
Relative import iri2uri #163
Conversation
Codecov Report
@@ Coverage Diff @@
## master #163 +/- ##
=======================================
Coverage 75.68% 75.68%
=======================================
Files 8 8
Lines 2616 2616
=======================================
Hits 1980 1980
Misses 636 636
Continue to review full report at Codecov.
|
Update: sorry, of course python3 already has it written as relative import. |
I'm sorry. The SG-16899 reference and #1 were used for the commit on our own fork. Submitting a PR from that master branch carried the same info. |
Please remove that if you want your commit merged intact. Otherwise I'd change commit message. |
Fixes an ImportError when using IronPython 2.7
Done |
Thank you very much. |
Released in 0.17.3 |
When using IronPython 2.7, importing httplib2 can raise an ImportError. It seems like a bug in IronPython but switching iri2uri's import to a relative import solves the issue and will still work in other python implementations.
I've put together a simplified example of the structure that can cause the import error in IronPython in code_structure.zip. It seems that under certain circumstances, once a relative import has been executed, the following absolute import does not search the local directory.