Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
982c30b8
Commit
982c30b8
authored
Jun 09, 2006
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitespace normalization.
parent
c48b0e66
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
81 deletions
+3
-81
Lib/wsgiref/handlers.py
Lib/wsgiref/handlers.py
+1
-18
Lib/wsgiref/headers.py
Lib/wsgiref/headers.py
+0
-16
Lib/wsgiref/simple_server.py
Lib/wsgiref/simple_server.py
+0
-12
Lib/wsgiref/util.py
Lib/wsgiref/util.py
+2
-34
Lib/wsgiref/validate.py
Lib/wsgiref/validate.py
+0
-1
No files found.
Lib/wsgiref/handlers.py
View file @
982c30b8
...
...
@@ -209,7 +209,7 @@ class BaseHandler:
assert
type
(
data
)
is
StringType
,
"write() argument must be string"
if
not
self
.
status
:
raise
AssertionError
(
"write() before start_response()"
)
raise
AssertionError
(
"write() before start_response()"
)
elif
not
self
.
headers_sent
:
# Before the first output, send the stored headers
...
...
@@ -473,20 +473,3 @@ class CGIHandler(BaseCGIHandler):
self
,
sys
.
stdin
,
sys
.
stdout
,
sys
.
stderr
,
dict
(
os
.
environ
.
items
()),
multithread
=
False
,
multiprocess
=
True
)
Lib/wsgiref/headers.py
View file @
982c30b8
...
...
@@ -187,19 +187,3 @@ class Headers:
else:
parts.append(_formatparam(k.replace('_', '-'), v))
self._headers.append((_name, "
;
".join(parts)))
Lib/wsgiref/simple_server.py
View file @
982c30b8
...
...
@@ -191,15 +191,3 @@ if __name__ == '__main__':
import
webbrowser
webbrowser
.
open
(
'http://localhost:8000/xyz?abc'
)
httpd
.
handle_request
()
# serve one request, then exit
Lib/wsgiref/util.py
View file @
982c30b8
...
...
@@ -59,10 +59,10 @@ def application_uri(environ):
if
environ
[
'wsgi.url_scheme'
]
==
'https'
:
if
environ
[
'SERVER_PORT'
]
!=
'443'
:
url
+=
':'
+
environ
[
'SERVER_PORT'
]
url
+=
':'
+
environ
[
'SERVER_PORT'
]
else
:
if
environ
[
'SERVER_PORT'
]
!=
'80'
:
url
+=
':'
+
environ
[
'SERVER_PORT'
]
url
+=
':'
+
environ
[
'SERVER_PORT'
]
url
+=
quote
(
environ
.
get
(
'SCRIPT_NAME'
)
or
'/'
)
return
url
...
...
@@ -171,35 +171,3 @@ _hoppish = {
def
is_hop_by_hop
(
header_name
):
"""Return true if 'header_name' is an HTTP/1.1 "Hop-by-Hop" header"""
return
_hoppish
(
header_name
.
lower
())
Lib/wsgiref/validate.py
View file @
982c30b8
...
...
@@ -426,4 +426,3 @@ def check_iterator(iterator):
assert not isinstance(iterator, str), (
"You should not return a string as your application iterator, "
"instead return a single-item list containing that string.")
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