Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
03cfd4b1
Commit
03cfd4b1
authored
Apr 11, 2012
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_ssl.py: do not use ImportError to detect python3. do the right import from the start.
parent
fe74cda7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
greentest/test_ssl.py
greentest/test_ssl.py
+6
-12
No files found.
greentest/test_ssl.py
View file @
03cfd4b1
...
...
@@ -12,25 +12,19 @@ import os
import
errno
import
pprint
try
:
if
sys
.
version_info
[
0
]
==
3
:
from
urllib
import
request
as
urllib
except
:
from
urllib
import
parse
as
urlparse
from
http.server
import
HTTPServer
,
SimpleHTTPRequestHandler
else
:
import
urllib
try
:
import
urlparse
except
ImportError
:
from
urllib
import
parse
as
urlparse
from
BaseHTTPServer
import
HTTPServer
from
SimpleHTTPServer
import
SimpleHTTPRequestHandler
import
traceback
import
weakref
try
:
from
BaseHTTPServer
import
HTTPServer
from
SimpleHTTPServer
import
SimpleHTTPRequestHandler
except
ImportError
:
from
http.server
import
HTTPServer
,
SimpleHTTPRequestHandler
try
:
bytearray
except
NameError
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment