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):
...
@@ -706,35 +706,37 @@ class ModifiedInterpreter(InteractiveInterpreter):
debugger
=
self
.
debugger
debugger
=
self
.
debugger
try
:
try
:
self
.
tkconsole
.
beginexecuting
()
self
.
tkconsole
.
beginexecuting
()
try
:
if
not
debugger
and
self
.
rpcclt
is
not
None
:
if
not
debugger
and
self
.
rpcclt
is
not
None
:
self
.
active_seq
=
self
.
rpcclt
.
asyncqueue
(
"exec"
,
"runcode"
,
self
.
active_seq
=
self
.
rpcclt
.
asyncqueue
(
"exec"
,
"runcode"
,
(
code
,),
{})
(
code
,),
{})
elif
debugger
:
elif
debugger
:
debugger
.
run
(
code
,
self
.
locals
)
debugger
.
run
(
code
,
self
.
locals
)
else
:
else
:
exec
code
in
self
.
locals
exec
code
in
self
.
locals
except
SystemExit
:
except
SystemExit
:
if
not
self
.
tkconsole
.
closing
:
if
not
self
.
tkconsole
.
closing
:
if
tkMessageBox
.
askyesno
(
if
tkMessageBox
.
askyesno
(
"Exit?"
,
"Exit?"
,
"Do you want to exit altogether?"
,
"Do you want to exit altogether?"
,
default
=
"yes"
,
default
=
"yes"
,
master
=
self
.
tkconsole
.
text
):
master
=
self
.
tkconsole
.
text
):
raise
else
:
self
.
showtraceback
()
else
:
raise
raise
except
:
else
:
if
use_subprocess
:
self
.
showtraceback
()
# When run w/o subprocess, both user and IDLE errors
else
:
# are printed here; skip message in that case.
raise
print
>>
self
.
tkconsole
.
stderr
,
\
except
:
"IDLE internal error in runcode()"
if
use_subprocess
:
print
>>
self
.
tkconsole
.
stderr
,
\
"IDLE internal error in runcode()"
self
.
showtraceback
()
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
:
finally
:
if
not
use_subprocess
:
if
not
use_subprocess
:
try
:
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