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
e29002cc
Kaydet (Commit)
e29002cc
authored
Nis 12, 2006
tarafından
Anthony Baxter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bug #1469163: SimpleXMLRPCServer unconditionally attempted to import fcntl.
Wrapped in a try/except.
üst
2db15505
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
SimpleXMLRPCServer.py
Lib/SimpleXMLRPCServer.py
+6
-2
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/SimpleXMLRPCServer.py
Dosyayı görüntüle @
e29002cc
...
@@ -104,7 +104,11 @@ from xmlrpclib import Fault
...
@@ -104,7 +104,11 @@ from xmlrpclib import Fault
import
SocketServer
import
SocketServer
import
BaseHTTPServer
import
BaseHTTPServer
import
sys
import
sys
import
os
,
fcntl
import
os
try
:
import
fcntl
except
ImportError
:
fcntl
=
None
def
resolve_dotted_attribute
(
obj
,
attr
,
allow_dotted_names
=
True
):
def
resolve_dotted_attribute
(
obj
,
attr
,
allow_dotted_names
=
True
):
"""resolve_dotted_attribute(a, 'b.c.d') => a.b.c.d
"""resolve_dotted_attribute(a, 'b.c.d') => a.b.c.d
...
@@ -493,7 +497,7 @@ class SimpleXMLRPCServer(SocketServer.TCPServer,
...
@@ -493,7 +497,7 @@ class SimpleXMLRPCServer(SocketServer.TCPServer,
# [Bug #1222790] If possible, set close-on-exec flag; if a
# [Bug #1222790] If possible, set close-on-exec flag; if a
# method spawns a subprocess, the subprocess shouldn't have
# method spawns a subprocess, the subprocess shouldn't have
# the listening socket open.
# the listening socket open.
if
hasattr
(
fcntl
,
'FD_CLOEXEC'
):
if
fcntl
is
not
None
and
hasattr
(
fcntl
,
'FD_CLOEXEC'
):
flags
=
fcntl
.
fcntl
(
self
.
fileno
(),
fcntl
.
F_GETFD
)
flags
=
fcntl
.
fcntl
(
self
.
fileno
(),
fcntl
.
F_GETFD
)
flags
|=
fcntl
.
FD_CLOEXEC
flags
|=
fcntl
.
FD_CLOEXEC
fcntl
.
fcntl
(
self
.
fileno
(),
fcntl
.
F_SETFD
,
flags
)
fcntl
.
fcntl
(
self
.
fileno
(),
fcntl
.
F_SETFD
,
flags
)
...
...
Misc/NEWS
Dosyayı görüntüle @
e29002cc
...
@@ -49,6 +49,9 @@ Extension Modules
...
@@ -49,6 +49,9 @@ Extension Modules
Library
Library
-------
-------
-
SimpleXMLRPCServer
relied
on
the
fcntl
module
,
which
is
unavailable
on
Windows
.
Bug
#
1469163.
-
The
warnings
,
linecache
,
inspect
,
traceback
,
site
,
and
doctest
modules
-
The
warnings
,
linecache
,
inspect
,
traceback
,
site
,
and
doctest
modules
were
updated
to
work
correctly
with
modules
imported
from
zipfiles
or
were
updated
to
work
correctly
with
modules
imported
from
zipfiles
or
via
other
PEP
302
__loader__
objects
.
via
other
PEP
302
__loader__
objects
.
...
...
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