diff options
| author | Chris Laplante <chris.laplante@agilent.com> | 2021-10-19 10:06:09 -1000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-23 17:47:38 +0100 |
| commit | c35f34361e94a81660c6e1f59d770f8a165e7f53 (patch) | |
| tree | 836d771437604d9ff369f5de9aec63dc651a7cf5 /bitbake/lib/bb/persist_data.py | |
| parent | d2f1a20a19a8a1d604e703d630421a2cdbe65e14 (diff) | |
| download | poky-c35f34361e94a81660c6e1f59d770f8a165e7f53.tar.gz | |
bitbake: compat.py: remove file since it no longer actually implements anything
Now that compat.py just imports Python standard library stuff, get rid
of the layer of indirection.
(Bitbake rev: 2a40a776efd7c28fa93a8556accccb79e3a7d0f0)
Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit e2be6defbb9fcf25f9df04c3b452d0dba48dfd03)
Signed-off-by: Justin Bronder <jsbronder@cold-front.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/persist_data.py')
| -rw-r--r-- | bitbake/lib/bb/persist_data.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/persist_data.py b/bitbake/lib/bb/persist_data.py index 7357ab2d44..5f4fbe3508 100644 --- a/bitbake/lib/bb/persist_data.py +++ b/bitbake/lib/bb/persist_data.py | |||
| @@ -12,14 +12,14 @@ currently, providing a key/value store accessed by 'domain'. | |||
| 12 | # | 12 | # |
| 13 | 13 | ||
| 14 | import collections | 14 | import collections |
| 15 | import contextlib | ||
| 16 | import functools | ||
| 15 | import logging | 17 | import logging |
| 16 | import os.path | 18 | import os.path |
| 19 | import sqlite3 | ||
| 17 | import sys | 20 | import sys |
| 18 | import warnings | 21 | import warnings |
| 19 | from bb.compat import total_ordering | ||
| 20 | from collections import Mapping | 22 | from collections import Mapping |
| 21 | import sqlite3 | ||
| 22 | import contextlib | ||
| 23 | 23 | ||
| 24 | sqlversion = sqlite3.sqlite_version_info | 24 | sqlversion = sqlite3.sqlite_version_info |
| 25 | 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 +28,7 @@ if sqlversion[0] < 3 or (sqlversion[0] == 3 and sqlversion[1] < 3): | |||
| 28 | 28 | ||
| 29 | logger = logging.getLogger("BitBake.PersistData") | 29 | logger = logging.getLogger("BitBake.PersistData") |
| 30 | 30 | ||
| 31 | @total_ordering | 31 | @functools.total_ordering |
| 32 | class SQLTable(collections.MutableMapping): | 32 | class SQLTable(collections.MutableMapping): |
| 33 | class _Decorators(object): | 33 | class _Decorators(object): |
| 34 | @staticmethod | 34 | @staticmethod |
