Commit 03e289bb authored by sand's avatar sand

use proper escaping for regexp

parent d706360c
Pipeline #2346 failed with stage
in 34 seconds
......@@ -158,7 +158,7 @@ def _openpgp_mangle_for_signature(msg):
g = rfc3156.RFC3156CompliantGenerator(
fp, mangle_from_=False, maxheaderlen=76)
g.flatten(msg)
s = re.sub('\r?\n', '\r\n', fp.getvalue())
s = re.sub(r'\r?\n', '\r\n', fp.getvalue())
if msg.is_multipart():
if not s.endswith('\r\n'):
s += '\r\n'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment