File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66
77## [ Unreleased]
88
9+ ### Fixed
10+
11+ - Import backports-datetime-fromisoformat only if needed, to fix PyPy 3.7 support
12+
913## [ 0.20.0] - 2022-12-07
1014
1115### Changed
Original file line number Diff line number Diff line change 1818from collections import OrderedDict
1919from datetime import datetime
2020
21- import backports .datetime_fromisoformat
2221import odf .opendocument
2322from odf .table import Table , TableCell , TableRow
2423
2524# Backport for datetime.fromisoformat, which is new in Python 3.7
2625try :
2726 _ = datetime .fromisoformat
2827except AttributeError :
28+ import backports .datetime_fromisoformat
29+
2930 backports .datetime_fromisoformat .MonkeyPatch .patch_fromisoformat ()
3031
3132
You can’t perform that action at this time.
0 commit comments