devtools in py3
This commit is contained in:
parent
18f5a29ead
commit
894b080da1
2 changed files with 6 additions and 6 deletions
|
|
@ -1,15 +1,15 @@
|
|||
#!/usr/bin/python2
|
||||
#!/usr/bin/python3
|
||||
|
||||
from __future__ import absolute_import, print_function
|
||||
|
||||
import ast
|
||||
import io
|
||||
import os
|
||||
import os.path
|
||||
import pprint
|
||||
import sys
|
||||
|
||||
from six.moves import cStringIO
|
||||
from six.moves.urllib.parse import quote
|
||||
from urllib.parse import quote
|
||||
|
||||
sys.path.insert(0, os.getcwd())
|
||||
sys.path.insert(1, os.path.join(os.getcwd(), 'hub'))
|
||||
|
|
@ -94,7 +94,7 @@ def main():
|
|||
environ['SERVER_NAME'] = 'myserver'
|
||||
environ['SERVER_PORT'] = '443'
|
||||
environ['REQUEST_URI'] = get_url(environ)
|
||||
environ['wsgi.input'] = cStringIO(get_request())
|
||||
environ['wsgi.input'] = io.StringIO(get_request())
|
||||
environ['REQUEST_METHOD'] = 'POST'
|
||||
environ['CONTENT_TYPE'] = 'text/xml'
|
||||
set_config(environ)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python2
|
||||
#!/usr/bin/python3
|
||||
|
||||
from __future__ import absolute_import, print_function
|
||||
|
||||
|
|
@ -7,10 +7,10 @@ import os
|
|||
import os.path
|
||||
import pprint
|
||||
import sys
|
||||
from urllib.parse import quote
|
||||
from wsgiref.simple_server import make_server
|
||||
from wsgiref.util import setup_testing_defaults
|
||||
|
||||
from six.moves.urllib.parse import quote
|
||||
|
||||
CWD = os.getcwd()
|
||||
sys.path.insert(0, CWD)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue