Skip to content
This repository was archived by the owner on Sep 5, 2020. It is now read-only.

Python3 port rev2 - #7

Open
abannerjee wants to merge 4 commits into
masterfrom
python3-port-rev2
Open

Python3 port rev2#7
abannerjee wants to merge 4 commits into
masterfrom
python3-port-rev2

Conversation

@abannerjee

Copy link
Copy Markdown

Update django-selenium-testcase to work for both Python2 and Python3.

Ben Memberg and others added 4 commits March 24, 2020 10:54
Result of running the futirize command on all the python files to
     automatically convert them from pyhon2 to python3.
Imported module for reload() statements and fixed string handling.
In Python3, the 'urlparse' module no longer exists.

In order to support importing 'reload' and 'urljoin' in both
python2 and python3, we need to use the 'six' python2/3
compatibility module.

The following imports work for both python2 and python3:
- from six.moves import reload_module as reload
- from six.moves.urllib.parse import urljoin
This version supports both python2 and python3.
@abannerjee

Copy link
Copy Markdown
Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant