From: Richard Purdie Date: Thu, 12 May 2016 07:22:18 +0000 (+0100) Subject: bitbake: Drop futures usage since we're python 3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf25f05ce4db11466e62f134f9a6916f886a93d9;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake: Drop futures usage since we're python 3 Signed-off-by: Richard Purdie --- diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index fb86446d478..11f17efa6f8 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -22,7 +22,7 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -from __future__ import print_function + import sys, os, glob, os.path, re, time import atexit import itertools diff --git a/lib/bb/exceptions.py b/lib/bb/exceptions.py index f182c8fd627..eadfc571570 100644 --- a/lib/bb/exceptions.py +++ b/lib/bb/exceptions.py @@ -1,4 +1,4 @@ -from __future__ import absolute_import + import inspect import traceback import bb.namedtuple_with_abc diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 7d2f3504c83..14fe3c753a3 100644 --- a/lib/bb/fetch2/__init__.py +++ b/lib/bb/fetch2/__init__.py @@ -25,8 +25,6 @@ BitBake build tools. # # Based on functions from the base bb module, Copyright 2003 Holger Schurig -from __future__ import absolute_import -from __future__ import print_function import os, re import signal import logging diff --git a/lib/bb/fetch2/perforce.py b/lib/bb/fetch2/perforce.py index 3a10c7ca331..1aef246942e 100644 --- a/lib/bb/fetch2/perforce.py +++ b/lib/bb/fetch2/perforce.py @@ -25,7 +25,6 @@ BitBake build tools. # # Based on functions from the base bb module, Copyright 2003 Holger Schurig -from future_builtins import zip import os import subprocess import logging diff --git a/lib/bb/parse/ast.py b/lib/bb/parse/ast.py index 5f55af5ef8a..bc3a2f88266 100644 --- a/lib/bb/parse/ast.py +++ b/lib/bb/parse/ast.py @@ -21,8 +21,7 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -from __future__ import absolute_import -from future_builtins import filter + import re import string import logging diff --git a/lib/bb/parse/parse_py/BBHandler.py b/lib/bb/parse/parse_py/BBHandler.py index ef72c3700f5..c54a07979d3 100644 --- a/lib/bb/parse/parse_py/BBHandler.py +++ b/lib/bb/parse/parse_py/BBHandler.py @@ -25,7 +25,7 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -from __future__ import absolute_import + import re, bb, os import logging import bb.build, bb.utils