Commit 0a96016
Address four deprecation warnings (#375)
tests/formatting/test_formatter.py:241
/home/altendky/pendulum/tests/formatting/test_formatter.py:241:
DeprecationWarning: invalid escape sequence \[
assert f.format(d, "[YYYY] YYYY \[YYYY\]") == "YYYY 2016 [2016]"
tests/formatting/test_formatter.py:242
/home/altendky/pendulum/tests/formatting/test_formatter.py:242:
DeprecationWarning: invalid escape sequence \D
assert f.format(d, "\D D \\\D") == "D 28 \\28"
tests/datetime/test_from_format.py::test_from_format_with_escaped_elements
/home/altendky/pendulum/pendulum/formatting/formatter.py:406:
DeprecationWarning: Flags not at the start of the expression
'(?P<YYYY>\\d{1,4}|\\d{' (truncated)
if not re.match(pattern, time):
tests/datetime/test_from_format.py::test_from_format[Thursday 25th
December 1975 02:15:16 PM -05:00-dddd Do MMMM YYYY hh:mm:ss A
Z-1975-12-25T14:15:16-05:00-None]
/home/altendky/pendulum/pendulum/formatting/formatter.py:406:
DeprecationWarning: Flags not at the start of the expression
'(?P<dddd>Sunday|Mond' (truncated)
if not re.match(pattern, time):1 parent 94d28b0 commit 0a96016
File tree
2 files changed
+4
-4
lines changed- pendulum/formatting
- tests/formatting
2 files changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
242 | | - | |
| 241 | + | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
0 commit comments