Re: [DLA 1835-1] python3.4 security update breaks upgrade (SyntaxError: invalid syntax)
Hi Bas et al.,
> Setting up python3.4 (3.4.2-1+deb8u3) ...
> File "/usr/lib/python3.4/http/client.py", line 1014
> raise InvalidURL(f"URL can't contain control characters. {url!r} "
> ^
> SyntaxError: invalid syntax
Indeed. The reason for this is that f-strings were introduced in
Python 3.6. The equivalent for Python 3.4 would be:
raise InvalidURL("URL can't contain control characters. {!r} "
"(found at least {!r})".format(url, match.group()))
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby@debian.org 🍥 chris-lamb.co.uk
`-
Reply to: