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
This commit is contained in:
Chris Dent 2015-02-09 15:19:02 +00:00
parent a24f4c4449
commit da67a34cc7

View File

@ -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=[]):
"""