[Piglit] [PATCH 2/2] backends: make use of absolute_import to rename json_.py to json.py

Dylan Baker baker.dylan.c at gmail.com
Wed Dec 10 11:58:06 PST 2014


This is much nicer to look at, and is really what I wanted in the first
place, I just didn't know how to make it happen.

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 framework/backends/__init__.py           | 3 ++-
 framework/backends/{json_.py => json.py} | 0
 framework/tests/json_tests.py            | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
 rename framework/backends/{json_.py => json.py} (100%)

diff --git a/framework/backends/__init__.py b/framework/backends/__init__.py
index b2b3c85..257bba9 100644
--- a/framework/backends/__init__.py
+++ b/framework/backends/__init__.py
@@ -20,7 +20,8 @@
 
 """ Import public backend classes into one place """
 
-from .json_ import *
+# pylint: disable=wildcard-import
+from .json import *
 from .junit import *
 
 
diff --git a/framework/backends/json_.py b/framework/backends/json.py
similarity index 100%
rename from framework/backends/json_.py
rename to framework/backends/json.py
diff --git a/framework/tests/json_tests.py b/framework/tests/json_tests.py
index 168574f..70a501a 100644
--- a/framework/tests/json_tests.py
+++ b/framework/tests/json_tests.py
@@ -37,7 +37,7 @@ except ImportError:
 
 import framework.core as core
 import framework.tests.utils as utils
-from framework.backends.json_ import JSONBackend
+from framework.backends.json import JSONBackend
 from framework.programs.run import _create_metadata
 
 
-- 
2.2.0



More information about the Piglit mailing list