diff options
| author | Armin Kuster <akuster808@gmail.com> | 2021-05-11 12:40:46 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-05-14 07:57:57 +0100 |
| commit | c0c16809ef6d1a8f9f928721e88642dc4bf03d29 (patch) | |
| tree | 4b019a5201b26f773326edc9673e3dffeca446bb /bitbake/lib/hashserv/server.py | |
| parent | 37792f1410b705cd57f387660e3cdebfc3ea784d (diff) | |
| download | poky-c0c16809ef6d1a8f9f928721e88642dc4bf03d29.tar.gz | |
bitbake: hashserv/server.py: drop unused imports
remove unused vars.
(Bitbake rev: 3287d28a506f67abd192799e61ef28e74ce7002d)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/hashserv/server.py')
| -rw-r--r-- | bitbake/lib/hashserv/server.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/bitbake/lib/hashserv/server.py b/bitbake/lib/hashserv/server.py index c941c0e9dd..8e84989737 100644 --- a/bitbake/lib/hashserv/server.py +++ b/bitbake/lib/hashserv/server.py | |||
| @@ -6,13 +6,8 @@ | |||
| 6 | from contextlib import closing, contextmanager | 6 | from contextlib import closing, contextmanager |
| 7 | from datetime import datetime | 7 | from datetime import datetime |
| 8 | import asyncio | 8 | import asyncio |
| 9 | import json | ||
| 10 | import logging | 9 | import logging |
| 11 | import math | 10 | import math |
| 12 | import os | ||
| 13 | import signal | ||
| 14 | import socket | ||
| 15 | import sys | ||
| 16 | import time | 11 | import time |
| 17 | from . import create_async_client, TABLE_COLUMNS | 12 | from . import create_async_client, TABLE_COLUMNS |
| 18 | import bb.asyncrpc | 13 | import bb.asyncrpc |
| @@ -124,7 +119,6 @@ async def copy_from_upstream(client, db, method, taskhash): | |||
| 124 | if d is not None: | 119 | if d is not None: |
| 125 | # Filter out unknown columns | 120 | # Filter out unknown columns |
| 126 | d = {k: v for k, v in d.items() if k in TABLE_COLUMNS} | 121 | d = {k: v for k, v in d.items() if k in TABLE_COLUMNS} |
| 127 | keys = sorted(d.keys()) | ||
| 128 | 122 | ||
| 129 | with closing(db.cursor()) as cursor: | 123 | with closing(db.cursor()) as cursor: |
| 130 | insert_task(cursor, d) | 124 | insert_task(cursor, d) |
| @@ -137,7 +131,6 @@ async def copy_outhash_from_upstream(client, db, method, outhash, taskhash): | |||
| 137 | if d is not None: | 131 | if d is not None: |
| 138 | # Filter out unknown columns | 132 | # Filter out unknown columns |
| 139 | d = {k: v for k, v in d.items() if k in TABLE_COLUMNS} | 133 | d = {k: v for k, v in d.items() if k in TABLE_COLUMNS} |
| 140 | keys = sorted(d.keys()) | ||
| 141 | 134 | ||
| 142 | with closing(db.cursor()) as cursor: | 135 | with closing(db.cursor()) as cursor: |
| 143 | insert_task(cursor, d) | 136 | insert_task(cursor, d) |
