Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
7cf9cd93
Commit
7cf9cd93
authored
Jun 18, 2013
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fix previously fixed in a merge
--HG-- branch : distribute
parent
ac3ba239
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
setuptools/compat.py
setuptools/compat.py
+2
-0
setuptools/tests/server.py
setuptools/tests/server.py
+2
-2
No files found.
setuptools/compat.py
View file @
7cf9cd93
...
...
@@ -16,6 +16,7 @@ if sys.version_info[0] < 3:
import
httplib
from
BaseHTTPServer
import
HTTPServer
from
SimpleHTTPServer
import
SimpleHTTPRequestHandler
from
BaseHTTPServer
import
BaseHTTPRequestHandler
iteritems
=
lambda
o
:
o
.
iteritems
()
long_type
=
long
maxsize
=
sys
.
maxint
...
...
@@ -57,6 +58,7 @@ else:
from
html.entities
import
name2codepoint
import
http.client
as
httplib
from
http.server
import
HTTPServer
,
SimpleHTTPRequestHandler
from
http.server
import
BaseHTTPRequestHandler
iteritems
=
lambda
o
:
o
.
items
()
long_type
=
int
maxsize
=
sys
.
maxsize
...
...
setuptools/tests/server.py
View file @
7cf9cd93
...
...
@@ -3,7 +3,7 @@
import
sys
import
time
import
threading
import
BaseHTTPServ
er
from
setuptools.compat
import
BaseHTTPRequestHandl
er
from
setuptools.compat
import
(
urllib2
,
URLError
,
HTTPServer
,
SimpleHTTPRequestHandler
)
...
...
@@ -56,7 +56,7 @@ class IndexServer(HTTPServer):
port
=
self
.
server_port
return
'http://127.0.0.1:%s/setuptools/tests/indexes/'
%
port
class
RequestRecorder
(
BaseHTTP
Server
.
BaseHTTP
RequestHandler
):
class
RequestRecorder
(
BaseHTTPRequestHandler
):
def
do_GET
(
self
):
requests
=
vars
(
self
.
server
).
setdefault
(
'requests'
,
[])
requests
.
append
(
self
)
...
...
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