diff options
author | Dylan Baker <baker.dylan.c@gmail.com> | 2014-04-24 14:16:44 -0700 |
---|---|---|
committer | Dylan Baker <baker.dylan.c@gmail.com> | 2014-04-24 14:16:44 -0700 |
commit | e0c4b9344f3313d289f0ac3ea1226e367cf5de96 (patch) | |
tree | c1414040c67a3c9f0df214ef7fd94b7d8f58a800 /framework | |
parent | acb824ddc53c446124d88e37db610a4f8c59d56c (diff) |
framework/core.py: Remove unused imports and fix __all__
After profile was split out of the core module it's imports were not
removed. This has a small overhead cost and drive the code quality
checking tools crazy.
__all__ is a module name that controls the values exported when running
help() or pydoc. Setting these to reflect proper values helps python
tools to function better and makes the documentation accurate.
None of these changes affect running code at all.
Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/core.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/framework/core.py b/framework/core.py index 45b9afd86..cd72956fd 100644 --- a/framework/core.py +++ b/framework/core.py @@ -30,9 +30,6 @@ import re import subprocess import sys from cStringIO import StringIO -import multiprocessing -import multiprocessing.dummy -import importlib # TODO: ConfigParser is known as configparser in python3 import ConfigParser try: @@ -41,17 +38,16 @@ except ImportError: import json import framework.status as status -from .dmesg import get_dmesg from .threads import synchronized_self -from .log import Log __all__ = ['PIGLIT_CONFIG', 'Environment', - 'checkDir', - 'loadTestProfile', 'TestrunResult', 'TestResult', - 'TestProfile'] + 'JSONWriter', + 'checkDir', + 'load_results', + 'parse_listfile'] PIGLIT_CONFIG = ConfigParser.SafeConfigParser() |