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
4d9ed9fc
Kaydet (Commit)
4d9ed9fc
authored
Agu 13, 2007
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Enable basic load/store again.
üst
caf871ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
IOBinding.py
Lib/idlelib/IOBinding.py
+3
-3
No files found.
Lib/idlelib/IOBinding.py
Dosyayı görüntüle @
4d9ed9fc
...
@@ -123,6 +123,8 @@ def coding_spec(str):
...
@@ -123,6 +123,8 @@ def coding_spec(str):
Raise LookupError if the encoding is declared but unknown.
Raise LookupError if the encoding is declared but unknown.
"""
"""
# perform string manipulation in latin-1
str
=
str
.
decode
(
"latin-1"
)
# Only consider the first two lines
# Only consider the first two lines
str
=
str
.
split
(
"
\n
"
)[:
2
]
str
=
str
.
split
(
"
\n
"
)[:
2
]
str
=
"
\n
"
.
join
(
str
)
str
=
"
\n
"
.
join
(
str
)
...
@@ -386,7 +388,7 @@ class IOBinding:
...
@@ -386,7 +388,7 @@ class IOBinding:
return
False
return
False
def
encode
(
self
,
chars
):
def
encode
(
self
,
chars
):
if
isinstance
(
chars
,
types
.
StringType
):
if
isinstance
(
chars
,
bytes
):
# This is either plain ASCII, or Tk was returning mixed-encoding
# This is either plain ASCII, or Tk was returning mixed-encoding
# text to us. Don't try to guess further.
# text to us. Don't try to guess further.
return
chars
return
chars
...
@@ -544,8 +546,6 @@ class IOBinding:
...
@@ -544,8 +546,6 @@ class IOBinding:
self
.
savedialog
=
tkFileDialog
.
SaveAs
(
master
=
self
.
text
,
self
.
savedialog
=
tkFileDialog
.
SaveAs
(
master
=
self
.
text
,
filetypes
=
self
.
filetypes
)
filetypes
=
self
.
filetypes
)
filename
=
self
.
savedialog
.
show
(
initialdir
=
dir
,
initialfile
=
base
)
filename
=
self
.
savedialog
.
show
(
initialdir
=
dir
,
initialfile
=
base
)
if
isinstance
(
filename
,
str
):
filename
=
filename
.
encode
(
filesystemencoding
)
return
filename
return
filename
def
updaterecentfileslist
(
self
,
filename
):
def
updaterecentfileslist
(
self
,
filename
):
...
...
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