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
b672c36d
Commit
b672c36d
authored
Mar 04, 2014
by
Fantix King
Committed by
Denis Bilenko
Mar 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix urllib/urllib2/urlparse renamings in PY3 #38
Close #384.
parent
9701ce0f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
examples/webproxy.py
examples/webproxy.py
+8
-3
gevent/pywsgi.py
gevent/pywsgi.py
+4
-1
greentest/greentest.py
greentest/greentest.py
+2
-0
No files found.
examples/webproxy.py
View file @
b672c36d
...
...
@@ -15,10 +15,15 @@ from gevent import monkey; monkey.patch_all()
import
sys
import
re
import
traceback
import
urllib2
from
urlparse
import
urlparse
from
cgi
import
escape
from
urllib
import
unquote
try
:
import
urllib2
from
urlparse
import
urlparse
from
urllib
import
unquote
except
ImportError
:
from
urllib
import
request
as
urllib2
from
urllib.parse
import
urlparse
from
urllib.parse
import
unquote
LISTEN
=
":8088"
...
...
gevent/pywsgi.py
View file @
b672c36d
...
...
@@ -6,7 +6,10 @@ import sys
import
time
import
traceback
from
datetime
import
datetime
from
urllib
import
unquote
try
:
from
urllib
import
unquote
except
ImportError
:
from
urllib.parse
import
unquote
from
gevent
import
socket
import
gevent
...
...
greentest/greentest.py
View file @
b672c36d
...
...
@@ -100,6 +100,8 @@ def wrap_refcount(method):
self
.
tearDown
()
if
'urlparse'
in
sys
.
modules
:
sys
.
modules
[
'urlparse'
].
clear_cache
()
if
'urllib.parse'
in
sys
.
modules
:
sys
.
modules
[
'urllib.parse'
].
clear_cache
()
d
=
gettotalrefcount
()
-
d
deltas
.
append
(
d
)
# the following configurations are classified as "no leak"
...
...
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