Repository navigation
Commit 7287d26
committed
Fix _ftp_parse._parse_time for Python ≥ 3.15
time.strptime processing of formats that contain %d but not %Y was
deprecated in Python 3.13, and removed from Python 3.15
(python/cpython#70647). Deal with this by
adding %Y and having it parse the current year, in line with prior
semantics.
This fixes these tests/test_ftp_parse.py TestFTPParse tests by restoring
the ability to parse the '%b %d %H:%M' time format.
- test_decode_linux
- test_decode_linux_sticky
- test_decode_linux_suid
- test_parse_time1 parent 77a8562 commit 7287d26
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
90 | 98 | | |
91 | 99 | | |
92 | 100 | | |
| |||
0 commit comments