Re: deprecation warning

Christoph Zwerschke <[email protected]> Fri, 19 Mar 2021 10:21:00 +0100
Newsgroups gmane.comp.python.reportlab.user
Message-ID <[email protected]>
On 19.03.2021 10:15, Jürgen Gmach wrote:
> just updated to the latest reportalb version and now I get the
> following deprecation warning on Python 3.8 >
 > DeprecationWarning: invalid escape sequence \s
 >      _re_unit = re.compile('^\s*(.*)(i|in|cm|mm|pt|pica)\s*$'),

The warning is shown because this should be either a raw string or the 
"\s" needs double escaping.

-- Christoph