notfound 673987 1.0.1-1
thanks

the fix is a change of first match search to global search:
re.match(b(r"[\x00-\x1f]"), value)
to
re.search(b(r"[\x00-\x1f]"), value)

stable has:
safe_value = re.sub(r"[\x00-\x1f]", " ", value)[:4000]
if safe_value != value:
  raise ValueError("Unsafe header value %r", value)

which should be fine, re.sub works on the whole string.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to