* [PATCH] bitbake-layers: hide deprecation warnings
@ 2012-04-16 22:31 Paul Eggleton
2012-04-16 22:42 ` Mark Hatle
0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggleton @ 2012-04-16 22:31 UTC (permalink / raw)
To: bitbake-devel
There are a number of DeprecationWarnings within BitBake code which
bitbake itself filters out; bitbake-layers was not doing this, resulting
in a stream of warnings printed out when used with Python < 2.7 (these
warnings default to disabled on version 2.7 and above.)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
bin/bitbake-layers | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/bin/bitbake-layers b/bin/bitbake-layers
index bbd56fe..6d35386 100755
--- a/bin/bitbake-layers
+++ b/bin/bitbake-layers
@@ -9,6 +9,7 @@
import cmd
import logging
+import warnings
import os
import sys
import fnmatch
@@ -28,6 +29,7 @@ import bb.fetch2
logger = logging.getLogger('BitBake')
+warnings.filterwarnings("ignore", category=DeprecationWarning)
def main(args):
# Set up logging
--
1.7.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] bitbake-layers: hide deprecation warnings
2012-04-16 22:31 [PATCH] bitbake-layers: hide deprecation warnings Paul Eggleton
@ 2012-04-16 22:42 ` Mark Hatle
0 siblings, 0 replies; 2+ messages in thread
From: Mark Hatle @ 2012-04-16 22:42 UTC (permalink / raw)
To: bitbake-devel
On 4/16/12 5:31 PM, Paul Eggleton wrote:
> There are a number of DeprecationWarnings within BitBake code which
> bitbake itself filters out; bitbake-layers was not doing this, resulting
> in a stream of warnings printed out when used with Python< 2.7 (these
> warnings default to disabled on version 2.7 and above.)
>
> Signed-off-by: Paul Eggleton<paul.eggleton@linux.intel.com>
Verified this fix on CentOS 6.2
Tested-by: Mark Hatle <mark.hatle@windriver.com>
> ---
> bin/bitbake-layers | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/bin/bitbake-layers b/bin/bitbake-layers
> index bbd56fe..6d35386 100755
> --- a/bin/bitbake-layers
> +++ b/bin/bitbake-layers
> @@ -9,6 +9,7 @@
>
> import cmd
> import logging
> +import warnings
> import os
> import sys
> import fnmatch
> @@ -28,6 +29,7 @@ import bb.fetch2
>
> logger = logging.getLogger('BitBake')
>
> +warnings.filterwarnings("ignore", category=DeprecationWarning)
>
> def main(args):
> # Set up logging
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-16 22:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-16 22:31 [PATCH] bitbake-layers: hide deprecation warnings Paul Eggleton
2012-04-16 22:42 ` Mark Hatle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.