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
d7c9d9cd
Kaydet (Commit)
d7c9d9cd
authored
Nis 03, 2013
tarafından
Roger Serwy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#17614: IDLE no longer raises exception when quickly closing a file.
üst
c993a194
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
PyShell.py
Lib/idlelib/PyShell.py
+5
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/idlelib/PyShell.py
Dosyayı görüntüle @
d7c9d9cd
...
...
@@ -116,12 +116,13 @@ class PyShellEditorWindow(EditorWindow):
self
.
breakpointPath
=
os
.
path
.
join
(
idleConf
.
GetUserCfgDir
(),
'breakpoints.lst'
)
# whenever a file is changed, restore breakpoints
if
self
.
io
.
filename
:
self
.
restore_file_breaks
()
def
filename_changed_hook
(
old_hook
=
self
.
io
.
filename_change_hook
,
self
=
self
):
self
.
restore_file_breaks
()
old_hook
()
self
.
io
.
set_filename_change_hook
(
filename_changed_hook
)
if
self
.
io
.
filename
:
self
.
restore_file_breaks
()
rmenu_specs
=
[
(
"Cut"
,
"<<cut>>"
,
"rmenu_check_cut"
),
...
...
@@ -237,6 +238,9 @@ class PyShellEditorWindow(EditorWindow):
def
restore_file_breaks
(
self
):
self
.
text
.
update
()
# this enables setting "BREAK" tags to be visible
if
self
.
io
is
None
:
# can happen if IDLE closes due to the .update() call
return
filename
=
self
.
io
.
filename
if
filename
is
None
:
return
...
...
Misc/NEWS
Dosyayı görüntüle @
d7c9d9cd
...
...
@@ -12,6 +12,8 @@ Core and Builtins
Library
-------
- Issue #17614: IDLE no longer raises exception when quickly closing a file.
- Issue #13163: Rename operands in smtplib.SMTP._get_socket to correct names;
fixes otherwise misleading output in tracebacks and when when debug is on.
...
...
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