-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Location Timezone support for python3 newstr #244
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
Comments
The fix is just one word in location.py, but I can't make the change as I seemingly don't have permission to push my branch for a PR. I'm fine if someone else simply makes the fix, but if I can have permission to contribute to branches for PRs, that would be nice :) thanks!
|
To maybe make things a little more clear for future readers, the problem is that in the example above, We'd welcome a fix for this. To make a PR, you need to fork the library, push the changes to your fork, and make the PR from your fork. Please also add a test to test_location.py, probably just by adding u'Etc/GMT+7' or similar to the test_location_tz parametrize list. |
Thanks Will. I wasn't familiar with the forking workflow. I think I have it now. PR is in and was running through some checks. Thanks! |
Things have been quiet for a while. Hope the fall is going well for all of you so far!
The following code
gives the following exception:
The most straightforward fix is, in location.py, to check isinstance(tz, basestring) instead of str on line 66. This makes it compatible across python 2 and 3.
The text was updated successfully, but these errors were encountered: