-
Notifications
You must be signed in to change notification settings - Fork 81
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
pytz.utc vs datetime.timezone.utc #76
Comments
I know that python2 doen't have |
ok, for python2 pytz is irreplaceable I don't understand the question of complexity, what do you mean by that? |
Ah, It means any idea to remove pytz. |
oh, I found you guys use it in 2 places only and both times you use it to get Where I see the difficulty is supporting python2, because as you'd said there is no |
if we use Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'timezone' so we use pytz for python2. |
I like the idea of dependency elimination, esp. if it's only included for the use of a single constant. Official PyMongo rolls its own |
I want to integrate bson in a custom yocto image and I'm having troubles installing pytz dependency. I searched the repo and I found it is used here
I'm wondering if we could replace it with datetime.timezone.utc.
The text was updated successfully, but these errors were encountered: