All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Hatle <mark.hatle@windriver.com>
To: <bitbake-devel@lists.openembedded.org>
Subject: Re: [PATCH] bitbake-layers: hide deprecation warnings
Date: Mon, 16 Apr 2012 17:42:42 -0500	[thread overview]
Message-ID: <4F8CA062.4030202@windriver.com> (raw)
In-Reply-To: <1334615518-6809-1-git-send-email-paul.eggleton@linux.intel.com>

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




      reply	other threads:[~2012-04-16 22:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-16 22:31 [PATCH] bitbake-layers: hide deprecation warnings Paul Eggleton
2012-04-16 22:42 ` Mark Hatle [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F8CA062.4030202@windriver.com \
    --to=mark.hatle@windriver.com \
    --cc=bitbake-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.