Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
982c30b8
Kaydet (Commit)
982c30b8
authored
Haz 09, 2006
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Whitespace normalization.
üst
c48b0e66
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
81 deletions
+3
-81
handlers.py
Lib/wsgiref/handlers.py
+1
-18
headers.py
Lib/wsgiref/headers.py
+0
-16
simple_server.py
Lib/wsgiref/simple_server.py
+0
-12
util.py
Lib/wsgiref/util.py
+2
-34
validate.py
Lib/wsgiref/validate.py
+0
-1
No files found.
Lib/wsgiref/handlers.py
Dosyayı görüntüle @
982c30b8
...
@@ -209,7 +209,7 @@ class BaseHandler:
...
@@ -209,7 +209,7 @@ class BaseHandler:
assert
type
(
data
)
is
StringType
,
"write() argument must be string"
assert
type
(
data
)
is
StringType
,
"write() argument must be string"
if
not
self
.
status
:
if
not
self
.
status
:
raise
AssertionError
(
"write() before start_response()"
)
raise
AssertionError
(
"write() before start_response()"
)
elif
not
self
.
headers_sent
:
elif
not
self
.
headers_sent
:
# Before the first output, send the stored headers
# Before the first output, send the stored headers
...
@@ -473,20 +473,3 @@ class CGIHandler(BaseCGIHandler):
...
@@ -473,20 +473,3 @@ class CGIHandler(BaseCGIHandler):
self
,
sys
.
stdin
,
sys
.
stdout
,
sys
.
stderr
,
dict
(
os
.
environ
.
items
()),
self
,
sys
.
stdin
,
sys
.
stdout
,
sys
.
stderr
,
dict
(
os
.
environ
.
items
()),
multithread
=
False
,
multiprocess
=
True
multithread
=
False
,
multiprocess
=
True
)
)
Lib/wsgiref/headers.py
Dosyayı görüntüle @
982c30b8
...
@@ -187,19 +187,3 @@ class Headers:
...
@@ -187,19 +187,3 @@ class Headers:
else
:
else
:
parts
.
append
(
_formatparam
(
k
.
replace
(
'_'
,
'-'
),
v
))
parts
.
append
(
_formatparam
(
k
.
replace
(
'_'
,
'-'
),
v
))
self
.
_headers
.
append
((
_name
,
"; "
.
join
(
parts
)))
self
.
_headers
.
append
((
_name
,
"; "
.
join
(
parts
)))
Lib/wsgiref/simple_server.py
Dosyayı görüntüle @
982c30b8
...
@@ -191,15 +191,3 @@ if __name__ == '__main__':
...
@@ -191,15 +191,3 @@ if __name__ == '__main__':
import
webbrowser
import
webbrowser
webbrowser
.
open
(
'http://localhost:8000/xyz?abc'
)
webbrowser
.
open
(
'http://localhost:8000/xyz?abc'
)
httpd
.
handle_request
()
# serve one request, then exit
httpd
.
handle_request
()
# serve one request, then exit
Lib/wsgiref/util.py
Dosyayı görüntüle @
982c30b8
...
@@ -59,10 +59,10 @@ def application_uri(environ):
...
@@ -59,10 +59,10 @@ def application_uri(environ):
if
environ
[
'wsgi.url_scheme'
]
==
'https'
:
if
environ
[
'wsgi.url_scheme'
]
==
'https'
:
if
environ
[
'SERVER_PORT'
]
!=
'443'
:
if
environ
[
'SERVER_PORT'
]
!=
'443'
:
url
+=
':'
+
environ
[
'SERVER_PORT'
]
url
+=
':'
+
environ
[
'SERVER_PORT'
]
else
:
else
:
if
environ
[
'SERVER_PORT'
]
!=
'80'
:
if
environ
[
'SERVER_PORT'
]
!=
'80'
:
url
+=
':'
+
environ
[
'SERVER_PORT'
]
url
+=
':'
+
environ
[
'SERVER_PORT'
]
url
+=
quote
(
environ
.
get
(
'SCRIPT_NAME'
)
or
'/'
)
url
+=
quote
(
environ
.
get
(
'SCRIPT_NAME'
)
or
'/'
)
return
url
return
url
...
@@ -171,35 +171,3 @@ _hoppish = {
...
@@ -171,35 +171,3 @@ _hoppish = {
def
is_hop_by_hop
(
header_name
):
def
is_hop_by_hop
(
header_name
):
"""Return true if 'header_name' is an HTTP/1.1 "Hop-by-Hop" header"""
"""Return true if 'header_name' is an HTTP/1.1 "Hop-by-Hop" header"""
return
_hoppish
(
header_name
.
lower
())
return
_hoppish
(
header_name
.
lower
())
Lib/wsgiref/validate.py
Dosyayı görüntüle @
982c30b8
...
@@ -426,4 +426,3 @@ def check_iterator(iterator):
...
@@ -426,4 +426,3 @@ def check_iterator(iterator):
assert
not
isinstance
(
iterator
,
str
),
(
assert
not
isinstance
(
iterator
,
str
),
(
"You should not return a string as your application iterator, "
"You should not return a string as your application iterator, "
"instead return a single-item list containing that string."
)
"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