From patchwork Mon Apr 16 22:31:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel] bitbake-layers: hide deprecation warnings Date: Mon, 16 Apr 2012 22:31:58 -0000 From: Paul Eggleton X-Patchwork-Id: 25979 Message-Id: <1334615518-6809-1-git-send-email-paul.eggleton@linux.intel.com> To: bitbake-devel@lists.openembedded.org 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 Tested-by: Mark Hatle --- 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