diff options
Diffstat (limited to 'tests/extmod/re_sub.py')
-rw-r--r-- | tests/extmod/re_sub.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/extmod/re_sub.py b/tests/extmod/re_sub.py index 229c0e63ee..2c7c6c10f1 100644 --- a/tests/extmod/re_sub.py +++ b/tests/extmod/re_sub.py @@ -15,9 +15,9 @@ def multiply(m): return str(int(m.group(0)) * 2) -print(re.sub("\d+", multiply, "10 20 30 40 50")) +print(re.sub(r"\d+", multiply, "10 20 30 40 50")) -print(re.sub("\d+", lambda m: str(int(m.group(0)) // 2), "10 20 30 40 50")) +print(re.sub(r"\d+", lambda m: str(int(m.group(0)) // 2), "10 20 30 40 50")) def A(): |