summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2017-11-13 13:06:27 +0000
committerAngelos Evripiotis <jevripiotis@bloomberg.net>2017-11-13 13:13:27 +0000
commitcc6e09ce63c7576bd3f258515946e38a945903f4 (patch)
treed8d566461c3f75427e9d22806babcf1fbcd4a774
parentbe08caa06d6b8ba780aaaaadc56437f10418f39c (diff)
downloadbuildstream-138-aborting-bst-push-command-causes-stack-trace.tar.gz
Refactor, remove some unused imports138-aborting-bst-push-command-causes-stack-trace
When reading element.py, I was surprised that it was importing 'inspect'. Remove that import and some other unused ones to improve readability.
-rw-r--r--buildstream/_artifactcache/pushreceive.py1
-rw-r--r--buildstream/_options/optionpool.py1
-rw-r--r--buildstream/_platform/unix.py2
-rw-r--r--buildstream/element.py2
4 files changed, 0 insertions, 6 deletions
diff --git a/buildstream/_artifactcache/pushreceive.py b/buildstream/_artifactcache/pushreceive.py
index 59cdce7ab..8d2d3fb0b 100644
--- a/buildstream/_artifactcache/pushreceive.py
+++ b/buildstream/_artifactcache/pushreceive.py
@@ -22,7 +22,6 @@
import click
import logging
import os
-import struct
import subprocess
import sys
import tempfile
diff --git a/buildstream/_options/optionpool.py b/buildstream/_options/optionpool.py
index adca24a2d..387080110 100644
--- a/buildstream/_options/optionpool.py
+++ b/buildstream/_options/optionpool.py
@@ -18,7 +18,6 @@
# Authors:
# Tristan Van Berkom <tristan.vanberkom@codethink.co.uk>
#
-import ast
import jinja2
from collections import Mapping
diff --git a/buildstream/_platform/unix.py b/buildstream/_platform/unix.py
index 8a9f6ea17..c9d67d2bc 100644
--- a/buildstream/_platform/unix.py
+++ b/buildstream/_platform/unix.py
@@ -19,8 +19,6 @@
# Tristan Maat <tristan.maat@codethink.co.uk>
import os
-import sys
-import pathlib
from .. import utils
from .._exceptions import PlatformError
diff --git a/buildstream/element.py b/buildstream/element.py
index b76ef688f..497a5223e 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -24,11 +24,9 @@ Element
"""
import os
-import sys
import re
import stat
import copy
-import inspect
from collections import Mapping
from contextlib import contextmanager
from enum import Enum