diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-04-16 23:31:58 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-17 11:41:09 +0100 |
commit | 0a2378237f07eb1c812e2308e64b7d70781e2b39 (patch) | |
tree | b3d829df5d932c7d8559c3bd8ca1c52e5ef68a28 /bin/bitbake-layers | |
parent | 68a65e5eeeb01d78444f1e5b5d1bb7b21c9d0b2c (diff) | |
download | bitbake-contrib-0a2378237f07eb1c812e2308e64b7d70781e2b39.tar.gz |
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.)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin/bitbake-layers')
-rwxr-xr-x | bin/bitbake-layers | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/bitbake-layers b/bin/bitbake-layers index bbd56fe21..6d35386ca 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 |