From da67a34cc793fe9cdbf47f0a45486acee6e5591c Mon Sep 17 00:00:00 2001 From: Chris Dent Date: Mon, 9 Feb 2015 15:19:02 +0000 Subject: [PATCH] Correct pep8 errors from imports in weird places. If there are side effects associated with the location of these imports, the tests don't cover it, so we can only hope. Change-Id: I86e9754ff96ed881515fb0c8f9997acff740471d --- wsmeext/tg1.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wsmeext/tg1.py b/wsmeext/tg1.py index 87399f9..2e119f4 100644 --- a/wsmeext/tg1.py +++ b/wsmeext/tg1.py @@ -9,9 +9,11 @@ import sys import cherrypy import webob from turbogears import expose, util +import turbogears.view from wsme.rest import validate as wsvalidate import wsme.api +import wsme.rest import wsme.rest.args import wsme.rest.json from wsme.utils import is_valid_code @@ -128,8 +130,6 @@ class AutoXMLTemplate(object): return "text/xml" -import turbogears.view - turbogears.view.engines['wsmejson'] = AutoJSONTemplate(turbogears.view.stdvars) turbogears.view.engines['wsmexml'] = AutoXMLTemplate(turbogears.view.stdvars) @@ -146,8 +146,6 @@ class Controller(object): cherrypy.response.status = res.status return res.body -import wsme.rest - def _scan_api(controller, path=[], objects=[]): """