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
038c16b9
Kaydet (Commit)
038c16b9
authored
May 16, 2015
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #23184: idlelib, remove more unused names and imports.
üst
2733618f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
20 deletions
+10
-20
EditorWindow.py
Lib/idlelib/EditorWindow.py
+1
-3
PyShell.py
Lib/idlelib/PyShell.py
+7
-10
RemoteDebugger.py
Lib/idlelib/RemoteDebugger.py
+1
-1
ScriptBinding.py
Lib/idlelib/ScriptBinding.py
+0
-1
macosxSupport.py
Lib/idlelib/macosxSupport.py
+1
-3
run.py
Lib/idlelib/run.py
+0
-2
No files found.
Lib/idlelib/EditorWindow.py
Dosyayı görüntüle @
038c16b9
...
...
@@ -13,7 +13,6 @@ import traceback
import
webbrowser
from
idlelib.MultiCall
import
MultiCallCreator
from
idlelib
import
idlever
from
idlelib
import
WindowList
from
idlelib
import
SearchDialog
from
idlelib
import
GrepDialog
...
...
@@ -125,7 +124,6 @@ class EditorWindow(object):
EditorWindow
.
help_url
=
'file://'
+
EditorWindow
.
help_url
else
:
EditorWindow
.
help_url
=
"https://docs.python.org/
%
d.
%
d/"
%
sys
.
version_info
[:
2
]
currentTheme
=
idleConf
.
CurrentTheme
()
self
.
flist
=
flist
root
=
root
or
flist
.
root
self
.
root
=
root
...
...
@@ -714,7 +712,7 @@ class EditorWindow(object):
cmd
=
[
sys
.
executable
,
'-c'
,
'from turtledemo.__main__ import main; main()'
]
p
=
subprocess
.
Popen
(
cmd
,
shell
=
False
)
subprocess
.
Popen
(
cmd
,
shell
=
False
)
def
gotoline
(
self
,
lineno
):
if
lineno
is
not
None
and
lineno
>
0
:
...
...
Lib/idlelib/PyShell.py
Dosyayı görüntüle @
038c16b9
...
...
@@ -10,8 +10,6 @@ import sys
import
threading
import
time
import
tokenize
import
traceback
import
types
import
io
import
linecache
...
...
@@ -32,7 +30,6 @@ from idlelib.ColorDelegator import ColorDelegator
from
idlelib.UndoDelegator
import
UndoDelegator
from
idlelib.OutputWindow
import
OutputWindow
from
idlelib.configHandler
import
idleConf
from
idlelib
import
idlever
from
idlelib
import
rpc
from
idlelib
import
Debugger
from
idlelib
import
RemoteDebugger
...
...
@@ -166,7 +163,7 @@ class PyShellEditorWindow(EditorWindow):
filename
=
self
.
io
.
filename
text
.
tag_add
(
"BREAK"
,
"
%
d.0"
%
lineno
,
"
%
d.0"
%
(
lineno
+
1
))
try
:
i
=
self
.
breakpoints
.
index
(
lineno
)
self
.
breakpoints
.
index
(
lineno
)
except
ValueError
:
# only add if missing, i.e. do once
self
.
breakpoints
.
append
(
lineno
)
try
:
# update the subprocess debugger
...
...
@@ -427,7 +424,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
try
:
self
.
rpcclt
=
MyRPCClient
(
addr
)
break
except
OSError
as
err
:
except
OSError
:
pass
else
:
self
.
display_port_binding_error
()
...
...
@@ -448,7 +445,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
self
.
rpcclt
.
listening_sock
.
settimeout
(
10
)
try
:
self
.
rpcclt
.
accept
()
except
socket
.
timeout
as
err
:
except
socket
.
timeout
:
self
.
display_no_subprocess_error
()
return
None
self
.
rpcclt
.
register
(
"console"
,
self
.
tkconsole
)
...
...
@@ -483,7 +480,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
self
.
spawn_subprocess
()
try
:
self
.
rpcclt
.
accept
()
except
socket
.
timeout
as
err
:
except
socket
.
timeout
:
self
.
display_no_subprocess_error
()
return
None
self
.
transfer_path
(
with_cwd
=
with_cwd
)
...
...
@@ -501,7 +498,7 @@ class ModifiedInterpreter(InteractiveInterpreter):
# restart subprocess debugger
if
debug
:
# Restarted debugger connects to current instance of debug GUI
gui
=
RemoteDebugger
.
restart_subprocess_debugger
(
self
.
rpcclt
)
RemoteDebugger
.
restart_subprocess_debugger
(
self
.
rpcclt
)
# reload remote debugger breakpoints for all PyShellEditWindows
debug
.
load_breakpoints
()
self
.
compile
.
compiler
.
flags
=
self
.
original_compiler_flags
...
...
@@ -1231,7 +1228,7 @@ class PyShell(OutputWindow):
while
i
>
0
and
line
[
i
-
1
]
in
"
\t
"
:
i
=
i
-
1
line
=
line
[:
i
]
more
=
self
.
interp
.
runsource
(
line
)
self
.
interp
.
runsource
(
line
)
def
open_stack_viewer
(
self
,
event
=
None
):
if
self
.
interp
.
rpcclt
:
...
...
@@ -1245,7 +1242,7 @@ class PyShell(OutputWindow):
master
=
self
.
text
)
return
from
idlelib.StackViewer
import
StackBrowser
sv
=
StackBrowser
(
self
.
root
,
self
.
flist
)
StackBrowser
(
self
.
root
,
self
.
flist
)
def
view_restart_mark
(
self
,
event
=
None
):
self
.
text
.
see
(
"iomark"
)
...
...
Lib/idlelib/RemoteDebugger.py
Dosyayı görüntüle @
038c16b9
...
...
@@ -98,7 +98,7 @@ class IdbAdapter:
else
:
tb
=
tracebacktable
[
tbid
]
stack
,
i
=
self
.
idb
.
get_stack
(
frame
,
tb
)
stack
=
[(
wrap_frame
(
frame
),
k
)
for
frame
,
k
in
stack
]
stack
=
[(
wrap_frame
(
frame
2
),
k
)
for
frame2
,
k
in
stack
]
return
stack
,
i
def
run
(
self
,
cmd
):
...
...
Lib/idlelib/ScriptBinding.py
Dosyayı görüntüle @
038c16b9
...
...
@@ -18,7 +18,6 @@ XXX GvR Redesign this interface (yet again) as follows:
"""
import
os
import
string
import
tabnanny
import
tokenize
import
tkinter.messagebox
as
tkMessageBox
...
...
Lib/idlelib/macosxSupport.py
Dosyayı görüntüle @
038c16b9
...
...
@@ -123,11 +123,9 @@ def overrideRootMenu(root, flist):
#
# Due to a (mis-)feature of TkAqua the user will also see an empty Help
# menu.
from
tkinter
import
Menu
,
Text
,
Text
from
idlelib.EditorWindow
import
prepstr
,
get_accelerator
from
tkinter
import
Menu
from
idlelib
import
Bindings
from
idlelib
import
WindowList
from
idlelib.MultiCall
import
MultiCallCreator
closeItem
=
Bindings
.
menudefs
[
0
][
1
][
-
2
]
...
...
Lib/idlelib/run.py
Dosyayı görüntüle @
038c16b9
import
sys
import
io
import
linecache
import
time
import
socket
import
traceback
import
_thread
as
thread
import
threading
...
...
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