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
dddeb0ee
Kaydet (Commit)
dddeb0ee
authored
Şub 06, 2007
tarafından
Kurt B. Kaiser
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clean up ModifiedInterpreter.runcode() structure
üst
ecf796ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
27 deletions
+29
-27
PyShell.py
Lib/idlelib/PyShell.py
+29
-27
No files found.
Lib/idlelib/PyShell.py
Dosyayı görüntüle @
dddeb0ee
...
...
@@ -706,35 +706,37 @@ class ModifiedInterpreter(InteractiveInterpreter):
debugger
=
self
.
debugger
try
:
self
.
tkconsole
.
beginexecuting
()
try
:
if
not
debugger
and
self
.
rpcclt
is
not
None
:
self
.
active_seq
=
self
.
rpcclt
.
asyncqueue
(
"exec"
,
"runcode"
,
(
code
,),
{})
elif
debugger
:
debugger
.
run
(
code
,
self
.
locals
)
else
:
exec
code
in
self
.
locals
except
SystemExit
:
if
not
self
.
tkconsole
.
closing
:
if
tkMessageBox
.
askyesno
(
"Exit?"
,
"Do you want to exit altogether?"
,
default
=
"yes"
,
master
=
self
.
tkconsole
.
text
):
raise
else
:
self
.
showtraceback
()
else
:
if
not
debugger
and
self
.
rpcclt
is
not
None
:
self
.
active_seq
=
self
.
rpcclt
.
asyncqueue
(
"exec"
,
"runcode"
,
(
code
,),
{})
elif
debugger
:
debugger
.
run
(
code
,
self
.
locals
)
else
:
exec
code
in
self
.
locals
except
SystemExit
:
if
not
self
.
tkconsole
.
closing
:
if
tkMessageBox
.
askyesno
(
"Exit?"
,
"Do you want to exit altogether?"
,
default
=
"yes"
,
master
=
self
.
tkconsole
.
text
):
raise
except
:
if
use_subprocess
:
# When run w/o subprocess, both user and IDLE errors
# are printed here; skip message in that case.
print
>>
self
.
tkconsole
.
stderr
,
\
"IDLE internal error in runcode()"
else
:
self
.
showtraceback
()
else
:
raise
except
:
if
use_subprocess
:
print
>>
self
.
tkconsole
.
stderr
,
\
"IDLE internal error in runcode()"
self
.
showtraceback
()
if
use_subprocess
:
self
.
tkconsole
.
endexecuting
()
self
.
tkconsole
.
endexecuting
()
else
:
if
self
.
tkconsole
.
canceled
:
self
.
tkconsole
.
canceled
=
False
print
>>
self
.
tkconsole
.
stderr
,
"KeyboardInterrupt"
else
:
self
.
showtraceback
()
finally
:
if
not
use_subprocess
:
try
:
...
...
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