Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d9677f36
Commit
d9677f36
authored
Jun 03, 2019
by
Xtreak
Committed by
Terry Jan Reedy
Jun 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IDLE: Fix typos in docs and comments (GH-13749)
parent
cba9f847
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
11 additions
and
11 deletions
+11
-11
Lib/idlelib/config.py
Lib/idlelib/config.py
+1
-1
Lib/idlelib/configdialog.py
Lib/idlelib/configdialog.py
+1
-1
Lib/idlelib/delegator.py
Lib/idlelib/delegator.py
+1
-1
Lib/idlelib/editor.py
Lib/idlelib/editor.py
+1
-1
Lib/idlelib/idle_test/htest.py
Lib/idlelib/idle_test/htest.py
+1
-1
Lib/idlelib/idle_test/mock_tk.py
Lib/idlelib/idle_test/mock_tk.py
+1
-1
Lib/idlelib/idle_test/test_pyparse.py
Lib/idlelib/idle_test/test_pyparse.py
+1
-1
Lib/idlelib/search.py
Lib/idlelib/search.py
+1
-1
Lib/idlelib/searchbase.py
Lib/idlelib/searchbase.py
+1
-1
Lib/idlelib/squeezer.py
Lib/idlelib/squeezer.py
+1
-1
Lib/idlelib/undo.py
Lib/idlelib/undo.py
+1
-1
No files found.
Lib/idlelib/config.py
View file @
d9677f36
...
@@ -12,7 +12,7 @@ database keys are tuples (config-type, section, item). As implemented,
...
@@ -12,7 +12,7 @@ database keys are tuples (config-type, section, item). As implemented,
there are separate dicts for default and user values. Each has
there are separate dicts for default and user values. Each has
config-type keys 'main', 'extensions', 'highlight', and 'keys'. The
config-type keys 'main', 'extensions', 'highlight', and 'keys'. The
value for each key is a ConfigParser instance that maps section and item
value for each key is a ConfigParser instance that maps section and item
to values. For 'main' and 'extens
t
ons', user values override
to values. For 'main' and 'extens
i
ons', user values override
default values. For 'highlight' and 'keys', user sections augment the
default values. For 'highlight' and 'keys', user sections augment the
default sections (and must, therefore, have distinct names).
default sections (and must, therefore, have distinct names).
...
...
Lib/idlelib/configdialog.py
View file @
d9677f36
...
@@ -199,7 +199,7 @@ class ConfigDialog(Toplevel):
...
@@ -199,7 +199,7 @@ class ConfigDialog(Toplevel):
def
help
(
self
):
def
help
(
self
):
"""Create textview for config dialog help.
"""Create textview for config dialog help.
Attrbutes accessed:
Attr
i
butes accessed:
note
note
Methods:
Methods:
...
...
Lib/idlelib/delegator.py
View file @
d9677f36
...
@@ -14,7 +14,7 @@ class Delegator:
...
@@ -14,7 +14,7 @@ class Delegator:
def
resetcache
(
self
):
def
resetcache
(
self
):
"Removes added attributes while leaving original attributes."
"Removes added attributes while leaving original attributes."
# Function is really about resetting del
a
gator dict
# Function is really about resetting del
e
gator dict
# to original state. Cache is just a means
# to original state. Cache is just a means
for
key
in
self
.
__cache
:
for
key
in
self
.
__cache
:
try
:
try
:
...
...
Lib/idlelib/editor.py
View file @
d9677f36
...
@@ -315,7 +315,7 @@ class EditorWindow(object):
...
@@ -315,7 +315,7 @@ class EditorWindow(object):
self
.
CodeContext
(
self
).
toggle_code_context_event
)
self
.
CodeContext
(
self
).
toggle_code_context_event
)
def
_filename_to_unicode
(
self
,
filename
):
def
_filename_to_unicode
(
self
,
filename
):
"""Return filename as BMP unicode so diplayable in Tk."""
"""Return filename as BMP unicode so di
s
playable in Tk."""
# Decode bytes to unicode.
# Decode bytes to unicode.
if
isinstance
(
filename
,
bytes
):
if
isinstance
(
filename
,
bytes
):
try
:
try
:
...
...
Lib/idlelib/idle_test/htest.py
View file @
d9677f36
...
@@ -12,7 +12,7 @@ or function) whose .__name__ attribute is also X (the usual situation).
...
@@ -12,7 +12,7 @@ or function) whose .__name__ attribute is also X (the usual situation).
The first parameter of X must be 'parent'. When called, the parent
The first parameter of X must be 'parent'. When called, the parent
argument will be the root window. X must create a child Toplevel
argument will be the root window. X must create a child Toplevel
window (or subclass thereof). The Toplevel may be a test widget or
window (or subclass thereof). The Toplevel may be a test widget or
dialog, in which case the callable is the corresonding class. Or the
dialog, in which case the callable is the corres
p
onding class. Or the
Toplevel may contain the widget to be tested or set up a context in
Toplevel may contain the widget to be tested or set up a context in
which a test widget is invoked. In this latter case, the callable is a
which a test widget is invoked. In this latter case, the callable is a
wrapper function that sets up the Toplevel and other objects. Wrapper
wrapper function that sets up the Toplevel and other objects. Wrapper
...
...
Lib/idlelib/idle_test/mock_tk.py
View file @
d9677f36
...
@@ -37,7 +37,7 @@ class Mbox_func:
...
@@ -37,7 +37,7 @@ class Mbox_func:
"""Generic mock for messagebox functions, which all have the same signature.
"""Generic mock for messagebox functions, which all have the same signature.
Instead of displaying a message box, the mock's call method saves the
Instead of displaying a message box, the mock's call method saves the
arguments as instance attributes, which test functions can then exami
m
e.
arguments as instance attributes, which test functions can then exami
n
e.
The test can set the result returned to ask function
The test can set the result returned to ask function
"""
"""
def
__init__
(
self
,
result
=
None
):
def
__init__
(
self
,
result
=
None
):
...
...
Lib/idlelib/idle_test/test_pyparse.py
View file @
d9677f36
...
@@ -160,7 +160,7 @@ class PyParseTest(unittest.TestCase):
...
@@ -160,7 +160,7 @@ class PyParseTest(unittest.TestCase):
TestInfo
(
'
\
n
def function1(self, a,
\
n
'
,
[
0
,
1
,
2
],
BRACKET
),
TestInfo
(
'
\
n
def function1(self, a,
\
n
'
,
[
0
,
1
,
2
],
BRACKET
),
TestInfo
(
'())
\
n
'
,
[
0
,
1
],
NONE
),
# Extra closer.
TestInfo
(
'())
\
n
'
,
[
0
,
1
],
NONE
),
# Extra closer.
TestInfo
(
')(
\
n
'
,
[
0
,
1
],
BRACKET
),
# Extra closer.
TestInfo
(
')(
\
n
'
,
[
0
,
1
],
BRACKET
),
# Extra closer.
# For the mismatched example, it doesn't look like contination.
# For the mismatched example, it doesn't look like contin
u
ation.
TestInfo
(
'{)(]
\
n
'
,
[
0
,
1
],
NONE
),
# Mismatched.
TestInfo
(
'{)(]
\
n
'
,
[
0
,
1
],
NONE
),
# Mismatched.
)
)
...
...
Lib/idlelib/search.py
View file @
d9677f36
...
@@ -80,7 +80,7 @@ class SearchDialog(SearchDialogBase):
...
@@ -80,7 +80,7 @@ class SearchDialog(SearchDialogBase):
If no search was previously run, open a new search dialog. In
If no search was previously run, open a new search dialog. In
this case, no search is done.
this case, no search is done.
If a seach was previously run, the search dialog won't be
If a sea
r
ch was previously run, the search dialog won't be
shown and the options from the previous search (including the
shown and the options from the previous search (including the
search pattern) will be used to find the next occurrence
search pattern) will be used to find the next occurrence
of the pattern. Next is relative based on direction.
of the pattern. Next is relative based on direction.
...
...
Lib/idlelib/searchbase.py
View file @
d9677f36
...
@@ -36,7 +36,7 @@ class SearchDialogBase:
...
@@ -36,7 +36,7 @@ class SearchDialogBase:
text (Text searched): set in open(), only used in subclasses().
text (Text searched): set in open(), only used in subclasses().
ent (ry): created in make_entry() called from create_entry().
ent (ry): created in make_entry() called from create_entry().
row (of grid): 0 in create_widgets(), +1 in make_entry/frame().
row (of grid): 0 in create_widgets(), +1 in make_entry/frame().
default_command: set in subclasses, used in create_widge
r
s().
default_command: set in subclasses, used in create_widge
t
s().
title (of dialog): class attribute, override in subclasses.
title (of dialog): class attribute, override in subclasses.
icon (of dialog): ditto, use unclear if cannot minimize dialog.
icon (of dialog): ditto, use unclear if cannot minimize dialog.
...
...
Lib/idlelib/squeezer.py
View file @
d9677f36
...
@@ -6,7 +6,7 @@ Worse, this can cause IDLE to become very slow, even to the point of being
...
@@ -6,7 +6,7 @@ Worse, this can cause IDLE to become very slow, even to the point of being
completely unusable.
completely unusable.
This extension will automatically replace long texts with a small button.
This extension will automatically replace long texts with a small button.
Double-cliking this button will remove it and insert the original text instead.
Double-cli
c
king this button will remove it and insert the original text instead.
Middle-clicking will copy the text to the clipboard. Right-clicking will open
Middle-clicking will copy the text to the clipboard. Right-clicking will open
the text in a separate viewing window.
the text in a separate viewing window.
...
...
Lib/idlelib/undo.py
View file @
d9677f36
...
@@ -2,7 +2,7 @@ import string
...
@@ -2,7 +2,7 @@ import string
from
idlelib.delegator
import
Delegator
from
idlelib.delegator
import
Delegator
# tkint
t
er import not needed because module does not create widgets,
# tkinter import not needed because module does not create widgets,
# although many methods operate on text widget arguments.
# although many methods operate on text widget arguments.
#$ event <<redo>>
#$ event <<redo>>
...
...
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