mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-08-02 17:27:47 +00:00
Modernize usage of re.sub deprecated in Python 3.13
Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
@@ -762,7 +762,7 @@ def escaped_split(inp_str, split_char):
|
||||
raise ValueError('Expected split character. Found string!')
|
||||
out = re.sub(r'(\\.)|' + split_char,
|
||||
lambda m: m.group(1) or '\n', inp_str,
|
||||
len(inp_str)).split('\n')
|
||||
count=len(inp_str)).split('\n')
|
||||
out = [x for x in out if x]
|
||||
return out
|
||||
|
||||
|
||||
Reference in New Issue
Block a user