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.
6
6
7
7
## [ Unreleased]
8
8
9
+ ### Fixed
10
+
11
+ - Import backports-datetime-fromisoformat only if needed, to fix PyPy 3.7 support
12
+
9
13
## [ 0.20.0] - 2022-12-07
10
14
11
15
### Changed
Original file line number Diff line number Diff line change 18
18
from collections import OrderedDict
19
19
from datetime import datetime
20
20
21
- import backports .datetime_fromisoformat
22
21
import odf .opendocument
23
22
from odf .table import Table , TableCell , TableRow
24
23
25
24
# Backport for datetime.fromisoformat, which is new in Python 3.7
26
25
try :
27
26
_ = datetime .fromisoformat
28
27
except AttributeError :
28
+ import backports .datetime_fromisoformat
29
+
29
30
backports .datetime_fromisoformat .MonkeyPatch .patch_fromisoformat ()
30
31
31
32
You can’t perform that action at this time.
0 commit comments