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:31 +0100 |
commit | 04d6aa1069f68562cc28167c4bf9f0096789ec7f (patch) | |
tree | 6a8230c832b1cf583ec30435163f0a52109a157b /bitbake/bin | |
parent | 993c46751097e3528adbae51f21b4607cd964cdb (diff) | |
download | poky-04d6aa1069f68562cc28167c4bf9f0096789ec7f.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.)
(Bitbake rev: 0a2378237f07eb1c812e2308e64b7d70781e2b39)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-x | bitbake/bin/bitbake-layers | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ | |||
9 | 9 | ||
10 | import cmd | 10 | import cmd |
11 | import logging | 11 | import logging |
12 | import warnings | ||
12 | import os | 13 | import os |
13 | import sys | 14 | import sys |
14 | import fnmatch | 15 | import fnmatch |
@@ -28,6 +29,7 @@ import bb.fetch2 | |||
28 | 29 | ||
29 | logger = logging.getLogger('BitBake') | 30 | logger = logging.getLogger('BitBake') |
30 | 31 | ||
32 | warnings.filterwarnings("ignore", category=DeprecationWarning) | ||
31 | 33 | ||
32 | def main(args): | 34 | def main(args): |
33 | # Set up logging | 35 | # Set up logging |