diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-27 17:10:53 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-29 10:25:51 +0000 |
| commit | 459ac215e60e533ffe24f402e070e85697c608f7 (patch) | |
| tree | 2ecc72335dd26c71e03a04fc1d45cb2a1e57a677 | |
| parent | bdc821a4c34464a56d8a934cea23399790288e83 (diff) | |
| download | poky-459ac215e60e533ffe24f402e070e85697c608f7.tar.gz | |
bitbake: data: Drop obsolete pydoc/path code
This code looks like it is from a time when the data module was executable.
Nobody does that now and this usage of pydoc is long since obsolete/broken
so clean up the code which doesn't do anything useful.
(Bitbake rev: 6f4ef770641a9657edaf8618f4c86dfb1116622c)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | bitbake/lib/bb/data.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py index 430d444203..22d314d6c2 100644 --- a/bitbake/lib/bb/data.py +++ b/bitbake/lib/bb/data.py | |||
| @@ -28,11 +28,6 @@ the speed is more critical here. | |||
| 28 | 28 | ||
| 29 | import sys, os, re | 29 | import sys, os, re |
| 30 | import hashlib | 30 | import hashlib |
| 31 | if sys.argv[0][-5:] == "pydoc": | ||
| 32 | path = os.path.dirname(os.path.dirname(sys.argv[1])) | ||
| 33 | else: | ||
| 34 | path = os.path.dirname(os.path.dirname(sys.argv[0])) | ||
| 35 | sys.path.insert(0, path) | ||
| 36 | from itertools import groupby | 31 | from itertools import groupby |
| 37 | 32 | ||
| 38 | from bb import data_smart | 33 | from bb import data_smart |
