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
036e8492
Kaydet (Commit)
036e8492
authored
Haz 12, 2013
tarafından
Roger Serwy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#5492: Avoid traceback when exiting IDLE caused by a race condition.
üst
38861204
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
PyShell.py
Lib/idlelib/PyShell.py
+5
-6
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/idlelib/PyShell.py
Dosyayı görüntüle @
036e8492
...
@@ -367,6 +367,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
...
@@ -367,6 +367,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
self
.
port
=
PORT
self
.
port
=
PORT
self
.
original_compiler_flags
=
self
.
compile
.
compiler
.
flags
self
.
original_compiler_flags
=
self
.
compile
.
compiler
.
flags
_afterid
=
None
rpcclt
=
None
rpcclt
=
None
rpcsubproc
=
None
rpcsubproc
=
None
...
@@ -486,6 +487,8 @@ class ModifiedInterpreter(InteractiveInterpreter):
...
@@ -486,6 +487,8 @@ class ModifiedInterpreter(InteractiveInterpreter):
threading
.
Thread
(
target
=
self
.
__request_interrupt
)
.
start
()
threading
.
Thread
(
target
=
self
.
__request_interrupt
)
.
start
()
def
kill_subprocess
(
self
):
def
kill_subprocess
(
self
):
if
self
.
_afterid
is
not
None
:
self
.
tkconsole
.
text
.
after_cancel
(
self
.
_afterid
)
try
:
try
:
self
.
rpcclt
.
listening_sock
.
close
()
self
.
rpcclt
.
listening_sock
.
close
()
except
AttributeError
:
# no socket
except
AttributeError
:
# no socket
...
@@ -561,8 +564,8 @@ class ModifiedInterpreter(InteractiveInterpreter):
...
@@ -561,8 +564,8 @@ class ModifiedInterpreter(InteractiveInterpreter):
pass
pass
# Reschedule myself
# Reschedule myself
if
not
self
.
tkconsole
.
closing
:
if
not
self
.
tkconsole
.
closing
:
self
.
tkconsole
.
text
.
after
(
self
.
tkconsole
.
pollinterval
,
self
.
_afterid
=
self
.
tkconsole
.
text
.
after
(
self
.
poll_subprocess
)
self
.
tkconsole
.
pollinterval
,
self
.
poll_subprocess
)
debugger
=
None
debugger
=
None
...
@@ -973,10 +976,6 @@ class PyShell(OutputWindow):
...
@@ -973,10 +976,6 @@ class PyShell(OutputWindow):
self
.
stop_readline
()
self
.
stop_readline
()
self
.
canceled
=
True
self
.
canceled
=
True
self
.
closing
=
True
self
.
closing
=
True
# Wait for poll_subprocess() rescheduling to stop
self
.
text
.
after
(
2
*
self
.
pollinterval
,
self
.
close2
)
def
close2
(
self
):
return
EditorWindow
.
close
(
self
)
return
EditorWindow
.
close
(
self
)
def
_close
(
self
):
def
_close
(
self
):
...
...
Misc/NEWS
Dosyayı görüntüle @
036e8492
...
@@ -81,6 +81,8 @@ Library
...
@@ -81,6 +81,8 @@ Library
IDLE
IDLE
----
----
-
Issue
#
5492
:
Avoid
traceback
when
exiting
IDLE
caused
by
a
race
condition
.
-
Issue
#
17511
:
Keep
IDLE
find
dialog
open
after
clicking
"Find Next"
.
-
Issue
#
17511
:
Keep
IDLE
find
dialog
open
after
clicking
"Find Next"
.
Original
patch
by
Sarah
K
.
Original
patch
by
Sarah
K
.
...
...
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