diff options
author | Chris Laplante <chris.laplante@agilent.com> | 2020-08-25 12:51:41 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-26 09:05:38 +0100 |
commit | 77441a08d4ba27996a651651e65f63af76e2503e (patch) | |
tree | 994b1fa370372cf0d2c45fa066b3ae5fb90e6366 /bitbake/lib/bb/persist_data.py | |
parent | 392b2cf529660da75013352a4249492ac55b36e6 (diff) | |
download | poky-77441a08d4ba27996a651651e65f63af76e2503e.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: e2be6defbb9fcf25f9df04c3b452d0dba48dfd03)
Signed-off-by: Chris Laplante <chris.laplante@agilent.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 |