diff options
| -rw-r--r-- | bitbake/lib/bb/data_smart.py | 2 | ||||
| -rw-r--r-- | bitbake/lib/bb/persist_data.py | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/data_smart.py b/bitbake/lib/bb/data_smart.py index 68770832e0..c8d2a43724 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 5f4fbe3508..56c983f816 100644 --- a/bitbake/lib/bb/persist_data.py +++ b/bitbake/lib/bb/persist_data.py | |||
| @@ -12,6 +12,7 @@ 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 |
| @@ -19,7 +20,7 @@ import os.path | |||
| 19 | import sqlite3 | 20 | import sqlite3 |
| 20 | import sys | 21 | import sys |
| 21 | import warnings | 22 | import warnings |
| 22 | from collections import Mapping | 23 | from collections.abc import Mapping |
| 23 | 24 | ||
| 24 | sqlversion = sqlite3.sqlite_version_info | 25 | sqlversion = sqlite3.sqlite_version_info |
| 25 | if sqlversion[0] < 3 or (sqlversion[0] == 3 and sqlversion[1] < 3): | 26 | if sqlversion[0] < 3 or (sqlversion[0] == 3 and sqlversion[1] < 3): |
| @@ -29,7 +30,7 @@ if sqlversion[0] < 3 or (sqlversion[0] == 3 and sqlversion[1] < 3): | |||
| 29 | logger = logging.getLogger("BitBake.PersistData") | 30 | logger = logging.getLogger("BitBake.PersistData") |
| 30 | 31 | ||
| 31 | @functools.total_ordering | 32 | @functools.total_ordering |
| 32 | class SQLTable(collections.MutableMapping): | 33 | class SQLTable(collections.abc.MutableMapping): |
| 33 | class _Decorators(object): | 34 | class _Decorators(object): |
| 34 | @staticmethod | 35 | @staticmethod |
| 35 | def retry(*, reconnect=True): | 36 | def retry(*, reconnect=True): |
