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
1ba32187
Kaydet (Commit)
1ba32187
authored
Tem 11, 2012
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Don't use TextIOBase implementations in _RPCFile.
üst
dbde8869
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
run.py
Lib/idlelib/run.py
+8
-2
No files found.
Lib/idlelib/run.py
Dosyayı görüntüle @
1ba32187
...
...
@@ -251,12 +251,18 @@ class MyRPCServer(rpc.RPCServer):
class
_RPCFile
(
io
.
TextIOBase
):
"""Wrapper class for the RPC proxy to typecheck arguments
that may not support pickling."""
that may not support pickling. The base class is there only
to support type tests; all implementations come from the remote
object."""
def
__init__
(
self
,
rpc
):
super
.
__setattr__
(
self
,
'rpc'
,
rpc
)
def
__getattr__
(
self
,
name
):
def
__getattribute__
(
self
,
name
):
# When accessing the 'rpc' attribute, use ours
if
name
==
'rpc'
:
return
io
.
TextIOBase
.
__getattribute__
(
self
,
name
)
# Else only look into the remote object only
return
getattr
(
self
.
rpc
,
name
)
def
__setattr__
(
self
,
name
,
value
):
...
...
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