fixed pep8 failes in wsgi.py
This commit is contained in:
parent
6ea8cec81e
commit
b6ec305c67
|
@ -20,16 +20,16 @@ import sys
|
|||
import site
|
||||
|
||||
|
||||
if nailgun.venv.VENV:
|
||||
if nailgun.venv.VENV:
|
||||
prev_sys_path = list(sys.path)
|
||||
site.addsitedir(nailgun.venv.VENV)
|
||||
|
||||
new_sys_path = []
|
||||
for item in list(sys.path):
|
||||
if item not in prev_sys_path:
|
||||
new_sys_path.append(item)
|
||||
sys.path.remove(item)
|
||||
sys.path[:0] = new_sys_path
|
||||
new_sys_path = []
|
||||
for item in list(sys.path):
|
||||
if item not in prev_sys_path:
|
||||
new_sys_path.append(item)
|
||||
sys.path.remove(item)
|
||||
sys.path[:0] = new_sys_path
|
||||
|
||||
|
||||
import os
|
||||
|
|
Loading…
Reference in New Issue