[OE-core] [PATCH 1/2 v2] meta: Fix Deprecated warnings from regexs

Richard Purdie richard.purdie at linuxfoundation.org
Mon Jan 14 23:12:33 UTC 2019


On Mon, 2019-01-14 at 23:04 +0000, Richard Purdie wrote:
> Fix handling of escape characters in regexs and hence fix python
> Deprecation warnings which will be problematic in python 3.8.
> 
> Note that some show up as:
> 
> """
> meta/classes/package.bbclass:1293: DeprecationWarning: invalid escape
> sequence \.  
> 
> """
> 
> where the problem isn't on 1293 in package.bbclass but in some
> _prepend to a
> package.bbclass function in a different file like mesa.inc, often
> from
> do_package_split() calls.

meta-oe and other layers are likely going to need this kind of cleanup
at some point.

A tip when trying to debug this is to remove the cache, tmp/cache and
all __pycache__ directories so that you force everything to get re-
parsed when debugging/fixing them.

Cheers,

Richard





More information about the Openembedded-core mailing list