Skip to content

Conversation

@rowillia
Copy link
Contributor

pytz shadows UTC after declaring it with a singleton:
https://github.com/newvem/pytz/blob/master/pytz/__init__.py#L135

This fixes #710



class UTC(dt.tzinfo):
class __UTC(dt.tzinfo):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not super keen on the __ prefix, given its conventional meaning. Maybe just name the class something longer with a single _, e.g. _UTCclass?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. Will fix.

@ambv ambv merged commit 0391e72 into python:master Nov 30, 2016
@ambv
Copy link
Contributor

ambv commented Nov 30, 2016

🍰

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

py2 pytz.UTC issue

3 participants