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
cc523fc5
Kaydet (Commit)
cc523fc5
authored
Kas 02, 2003
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SF patch #834015: Remove imports of unused modules
(Contributed by George Yoshida.)
üst
dc113a8a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
13 deletions
+8
-13
SimpleXMLRPCServer.py
Lib/SimpleXMLRPCServer.py
+0
-1
platform.py
Lib/platform.py
+0
-1
posixpath.py
Lib/posixpath.py
+0
-1
trace.py
Lib/trace.py
+0
-1
xmlrpclib.py
Lib/xmlrpclib.py
+8
-9
No files found.
Lib/SimpleXMLRPCServer.py
Dosyayı görüntüle @
cc523fc5
...
@@ -104,7 +104,6 @@ from xmlrpclib import Fault
...
@@ -104,7 +104,6 @@ from xmlrpclib import Fault
import
SocketServer
import
SocketServer
import
BaseHTTPServer
import
BaseHTTPServer
import
sys
import
sys
import
types
import
os
import
os
def
resolve_dotted_attribute
(
obj
,
attr
):
def
resolve_dotted_attribute
(
obj
,
attr
):
...
...
Lib/platform.py
Dosyayı görüntüle @
cc523fc5
...
@@ -1082,7 +1082,6 @@ def _sys_version():
...
@@ -1082,7 +1082,6 @@ def _sys_version():
"""
"""
global
_sys_version_cache
global
_sys_version_cache
import
time
if
_sys_version_cache
is
not
None
:
if
_sys_version_cache
is
not
None
:
return
_sys_version_cache
return
_sys_version_cache
...
...
Lib/posixpath.py
Dosyayı görüntüle @
cc523fc5
...
@@ -10,7 +10,6 @@ Some of this can actually be useful on non-Posix systems too, e.g.
...
@@ -10,7 +10,6 @@ Some of this can actually be useful on non-Posix systems too, e.g.
for manipulation of the pathname component of URLs.
for manipulation of the pathname component of URLs.
"""
"""
import
sys
import
os
import
os
import
stat
import
stat
...
...
Lib/trace.py
Dosyayı görüntüle @
cc523fc5
...
@@ -46,7 +46,6 @@ Sample use, programmatically
...
@@ -46,7 +46,6 @@ Sample use, programmatically
"""
"""
import
linecache
import
linecache
import
marshal
import
os
import
os
import
re
import
re
import
sys
import
sys
...
...
Lib/xmlrpclib.py
Dosyayı görüntüle @
cc523fc5
...
@@ -109,7 +109,7 @@ Exported classes:
...
@@ -109,7 +109,7 @@ Exported classes:
ServerProxy Represents a logical connection to an XML-RPC server
ServerProxy Represents a logical connection to an XML-RPC server
MultiCall Executor of boxcared xmlrpc requests
MultiCall Executor of boxcared xmlrpc requests
Boolean boolean wrapper to generate a "boolean" XML-RPC value
Boolean boolean wrapper to generate a "boolean" XML-RPC value
DateTime dateTime wrapper for an ISO 8601 string or time tuple or
DateTime dateTime wrapper for an ISO 8601 string or time tuple or
localtime integer value to generate a "dateTime.iso8601"
localtime integer value to generate a "dateTime.iso8601"
...
@@ -894,7 +894,7 @@ class _MultiCallMethod:
...
@@ -894,7 +894,7 @@ class _MultiCallMethod:
def
MultiCallIterator
(
results
):
def
MultiCallIterator
(
results
):
"""Iterates over the results of a multicall. Exceptions are
"""Iterates over the results of a multicall. Exceptions are
thrown in response to xmlrpc faults."""
thrown in response to xmlrpc faults."""
for
i
in
results
:
for
i
in
results
:
if
type
(
i
)
==
type
({}):
if
type
(
i
)
==
type
({}):
raise
Fault
(
i
[
'faultCode'
],
i
[
'faultString'
])
raise
Fault
(
i
[
'faultCode'
],
i
[
'faultString'
])
...
@@ -903,7 +903,7 @@ def MultiCallIterator(results):
...
@@ -903,7 +903,7 @@ def MultiCallIterator(results):
else
:
else
:
raise
ValueError
,
\
raise
ValueError
,
\
"unexpected type in multicall result"
"unexpected type in multicall result"
class
MultiCall
:
class
MultiCall
:
"""server -> a object used to boxcar method calls
"""server -> a object used to boxcar method calls
...
@@ -920,14 +920,14 @@ class MultiCall:
...
@@ -920,14 +920,14 @@ class MultiCall:
add_result, address = multicall()
add_result, address = multicall()
"""
"""
def
__init__
(
self
,
server
):
def
__init__
(
self
,
server
):
self
.
__server
=
server
self
.
__server
=
server
self
.
__call_list
=
[]
self
.
__call_list
=
[]
def
__repr__
(
self
):
def
__repr__
(
self
):
return
"<MultiCall at
%
x>"
%
id
(
self
)
return
"<MultiCall at
%
x>"
%
id
(
self
)
__str__
=
__repr__
__str__
=
__repr__
def
__getattr__
(
self
,
name
):
def
__getattr__
(
self
,
name
):
...
@@ -939,7 +939,7 @@ class MultiCall:
...
@@ -939,7 +939,7 @@ class MultiCall:
marshalled_list
.
append
({
'methodName'
:
name
,
'params'
:
args
})
marshalled_list
.
append
({
'methodName'
:
name
,
'params'
:
args
})
return
MultiCallIterator
(
self
.
__server
.
system
.
multicall
(
marshalled_list
))
return
MultiCallIterator
(
self
.
__server
.
system
.
multicall
(
marshalled_list
))
# --------------------------------------------------------------------
# --------------------------------------------------------------------
# convenience functions
# convenience functions
...
@@ -1071,7 +1071,6 @@ def loads(data):
...
@@ -1071,7 +1071,6 @@ def loads(data):
If the XML-RPC packet represents a fault condition, this function
If the XML-RPC packet represents a fault condition, this function
raises a Fault exception.
raises a Fault exception.
"""
"""
import
sys
p
,
u
=
getparser
()
p
,
u
=
getparser
()
p
.
feed
(
data
)
p
.
feed
(
data
)
p
.
close
()
p
.
close
()
...
@@ -1392,7 +1391,7 @@ class ServerProxy:
...
@@ -1392,7 +1391,7 @@ class ServerProxy:
)
)
__str__
=
__repr__
__str__
=
__repr__
def
__getattr__
(
self
,
name
):
def
__getattr__
(
self
,
name
):
# magic method dispatcher
# magic method dispatcher
return
_Method
(
self
.
__request
,
name
)
return
_Method
(
self
.
__request
,
name
)
...
...
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