diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-07-01 01:25:23 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-07-01 01:25:45 +0300 |
commit | 58b7b01cb539cb23109faadaf373e0134b81a6da (patch) | |
tree | 859b271ec3f5a667026e2586a9a0c181bf33e5a7 /tests/extmod/ure1.py | |
parent | 871a45dd0c96097601b4cf819aded020150a098c (diff) |
extmod/modure: If input string is bytes, return bytes results too.
This applies to match.group() and split().
For ARM Thumb2, this increased code size by 12 bytes.
Diffstat (limited to 'tests/extmod/ure1.py')
-rw-r--r-- | tests/extmod/ure1.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/extmod/ure1.py b/tests/extmod/ure1.py index 1f38b8087..6075990fc 100644 --- a/tests/extmod/ure1.py +++ b/tests/extmod/ure1.py @@ -80,3 +80,6 @@ try: re.compile("*") except: print("Caught invalid regex") + +# bytes objects +m = re.match(rb'a+?', b'ab'); print(m.group(0)) |