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
f8fc674f
Kaydet (Commit)
f8fc674f
authored
Tem 09, 2012
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue 13532: Allow bytearrays to be written also.
üst
9e6bf1a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
PyShell.py
Lib/idlelib/PyShell.py
+2
-2
run.py
Lib/idlelib/run.py
+2
-2
No files found.
Lib/idlelib/PyShell.py
Dosyayı görüntüle @
f8fc674f
...
...
@@ -1265,8 +1265,8 @@ class PseudoFile(object):
self
.
encoding
=
encoding
def
write
(
self
,
s
):
if
not
isinstance
(
s
,
basestring
):
raise
TypeError
(
'must be str, not '
+
type
(
s
)
.
__name__
)
if
not
isinstance
(
s
,
(
basestring
,
bytearray
)
):
raise
TypeError
(
'must be str
ing
, not '
+
type
(
s
)
.
__name__
)
self
.
shell
.
write
(
s
,
self
.
tags
)
def
writelines
(
self
,
lines
):
...
...
Lib/idlelib/run.py
Dosyayı görüntüle @
f8fc674f
...
...
@@ -263,8 +263,8 @@ class _RPCFile(io.TextIOBase):
return
setattr
(
self
.
rpc
,
name
,
value
)
def
write
(
self
,
s
):
if
not
isinstance
(
s
,
basestring
):
raise
TypeError
(
'must be str, not '
+
type
(
s
)
.
__name__
)
if
not
isinstance
(
s
,
(
basestring
,
bytearray
)
):
raise
TypeError
(
'must be str
ing
, not '
+
type
(
s
)
.
__name__
)
return
self
.
rpc
.
write
(
s
)
class
MyHandler
(
rpc
.
RPCHandler
):
...
...
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