-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
datetime: Make "fold" attribute handling optional
Python's datetime objects have a "fold" attribute since Python 3.6, which was properly forwarded when converting between Python's datetime and Hamster's datetime. However, this prevented to code from working with Python versions below 3.6. This commit makes handling of the fold attribute optional (e.g. it is only used when present), which makes this code work on older Python versions again.
- Loading branch information
1 parent
5a930a9
commit 0ba8407
Showing
1 changed file
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters