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
cef1f83c
Kaydet (Commit)
cef1f83c
authored
Haz 03, 2016
tarafından
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #25931: Don't defining socketserver.Forking* names on platforms such
as Windows that do not support os.fork().
üst
3bad04ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
socketserver.py
Lib/socketserver.py
+11
-6
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/socketserver.py
Dosyayı görüntüle @
cef1f83c
...
...
@@ -134,10 +134,12 @@ except ImportError:
import
dummy_threading
as
threading
from
time
import
monotonic
as
time
__all__
=
[
"BaseServer"
,
"TCPServer"
,
"UDPServer"
,
"ForkingUDPServer"
,
"
ForkingTCPServer"
,
"
ThreadingUDPServer"
,
"ThreadingTCPServer"
,
__all__
=
[
"BaseServer"
,
"TCPServer"
,
"UDPServer"
,
"ThreadingUDPServer"
,
"ThreadingTCPServer"
,
"BaseRequestHandler"
,
"StreamRequestHandler"
,
"DatagramRequestHandler"
,
"ThreadingMixIn"
,
"ForkingMixIn"
]
"DatagramRequestHandler"
,
"ThreadingMixIn"
]
if
hasattr
(
os
,
"fork"
):
__all__
.
extend
([
"ForkingUDPServer"
,
"ForkingTCPServer"
,
"ForkingMixIn"
])
if
hasattr
(
socket
,
"AF_UNIX"
):
__all__
.
extend
([
"UnixStreamServer"
,
"UnixDatagramServer"
,
"ThreadingUnixStreamServer"
,
...
...
@@ -537,7 +539,9 @@ class UDPServer(TCPServer):
# No need to close anything.
pass
class
ForkingMixIn
:
if
hasattr
(
os
,
"fork"
):
# Non-standard indentation on this statement to avoid reindenting the body.
class
ForkingMixIn
:
"""Mix-in class to handle each request in a new process."""
...
...
@@ -647,8 +651,9 @@ class ThreadingMixIn:
t
.
start
()
class
ForkingUDPServer
(
ForkingMixIn
,
UDPServer
):
pass
class
ForkingTCPServer
(
ForkingMixIn
,
TCPServer
):
pass
if
hasattr
(
os
,
"fork"
):
class
ForkingUDPServer
(
ForkingMixIn
,
UDPServer
):
pass
class
ForkingTCPServer
(
ForkingMixIn
,
TCPServer
):
pass
class
ThreadingUDPServer
(
ThreadingMixIn
,
UDPServer
):
pass
class
ThreadingTCPServer
(
ThreadingMixIn
,
TCPServer
):
pass
...
...
Misc/NEWS
Dosyayı görüntüle @
cef1f83c
...
...
@@ -22,6 +22,9 @@ Core and Builtins
Library
-------
- Issue #25931: Don'
t
defining
socketserver
.
Forking
*
names
on
platforms
such
as
Windows
that
do
not
support
os
.
fork
().
-
Issue
#
21776
:
distutils
.
upload
now
correctly
handles
HTTPError
.
Initial
patch
by
Claudiu
Popa
.
...
...
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