Re: [DLA 1835-1] python3.4 security update breaks upgrade (SyntaxError: invalid syntax)
On Tue, Jun 25, 2019 at 09:47:28AM +0100, Chris Lamb wrote:
> 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()))
>
My apologies for the oversight. I will have a fixed version out very
shortly.
Chris, thanks for the suggestion on the revised syntax. That will help
speed things along considerably.
Regards,
-Roberto
--
Roberto C. Sánchez
Reply to: