diff options
| -rw-r--r-- | bitbake/lib/bb/cache.py | 3 | ||||
| -rw-r--r-- | bitbake/lib/bb/data_smart.py | 2 | ||||
| -rw-r--r-- | bitbake/lib/bb/persist_data.py | 5 |
3 files changed, 6 insertions, 4 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index 73bc6e9665..4e08c100ab 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/lib/bb/cache.py | |||
| @@ -19,7 +19,8 @@ | |||
| 19 | import os | 19 | import os |
| 20 | import logging | 20 | import logging |
| 21 | import pickle | 21 | import pickle |
| 22 | from collections import defaultdict, Mapping | 22 | from collections import defaultdict |
| 23 | from collections.abc import Mapping | ||
| 23 | import bb.utils | 24 | import bb.utils |
| 24 | from bb import PrefixLoggerAdapter | 25 | from bb import PrefixLoggerAdapter |
| 25 | import re | 26 | import re |
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index e4afac64b2..73e33ee10e 100644 --- a/bitbake/lib/bb/data_smart.py +++ b/bitbake/lib/bb/data_smart.py | |||
| @@ -17,7 +17,7 @@ BitBake build tools. | |||
| 17 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig | 17 | # Based on functions from the base bb module, Copyright 2003 Holger Schurig |
| 18 | 18 | ||
| 19 | import copy, re, sys, traceback | 19 | import copy, re, sys, traceback |
| 20 | from collections import MutableMapping | 20 | from collections.abc import MutableMapping |
| 21 | import logging | 21 | import logging |
| 22 | import hashlib | 22 | import hashlib |
| 23 | import bb, bb.codeparser | 23 | import bb, bb.codeparser |
diff --git a/bitbake/lib/bb/persist_data.py b/bitbake/lib/bb/persist_data.py index 286cc0a99d..49c9a0d510 100644 --- a/bitbake/lib/bb/persist_data.py +++ b/bitbake/lib/bb/persist_data.py | |||
| @@ -12,13 +12,14 @@ currently, providing a key/value store accessed by 'domain'. | |||
| 12 | # | 12 | # |
| 13 | 13 | ||
| 14 | import collections | 14 | import collections |
| 15 | import collections.abc | ||
| 15 | import contextlib | 16 | import contextlib |
| 16 | import functools | 17 | import functools |
| 17 | import logging | 18 | import logging |
| 18 | import os.path | 19 | import os.path |
| 19 | import sqlite3 | 20 | import sqlite3 |
| 20 | import sys | 21 | import sys |
| 21 | from collections import Mapping | 22 | from collections.abc import Mapping |
| 22 | 23 | ||
| 23 | sqlversion = sqlite3.sqlite_version_info | 24 | sqlversion = sqlite3.sqlite_version_info |
| 24 | if sqlversion[0] < 3 or (sqlversion[0] == 3 and sqlversion[1] < 3): | 25 | if sqlversion[0] < 3 or (sqlversion[0] == 3 and sqlversion[1] < 3): |
| @@ -28,7 +29,7 @@ if sqlversion[0] < 3 or (sqlversion[0] == 3 and sqlversion[1] < 3): | |||
| 28 | logger = logging.getLogger("BitBake.PersistData") | 29 | logger = logging.getLogger("BitBake.PersistData") |
| 29 | 30 | ||
| 30 | @functools.total_ordering | 31 | @functools.total_ordering |
| 31 | class SQLTable(collections.MutableMapping): | 32 | class SQLTable(collections.abc.MutableMapping): |
| 32 | class _Decorators(object): | 33 | class _Decorators(object): |
| 33 | @staticmethod | 34 | @staticmethod |
| 34 | def retry(*, reconnect=True): | 35 | def retry(*, reconnect=True): |
