From 04d6aa1069f68562cc28167c4bf9f0096789ec7f Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Mon, 16 Apr 2012 23:31:58 +0100 Subject: bitbake-layers: hide deprecation warnings 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.) (Bitbake rev: 0a2378237f07eb1c812e2308e64b7d70781e2b39) Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- bitbake/bin/bitbake-layers | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bitbake/bin') diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers index bbd56fe219..6d35386cad 100755 --- a/bitbake/bin/bitbake-layers +++ b/bitbake/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 -- cgit v1.2.3-54-g00ecf