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
5a346d5d
Commit
5a346d5d
authored
May 27, 2017
by
csabella
Committed by
terryjreedy
May 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-30290: IDLE: Refactor help_about to PEP8 names (#1714)
Patch by Cheryl Sabella.
parent
c0364fc7
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
119 additions
and
95 deletions
+119
-95
Lib/idlelib/help_about.py
Lib/idlelib/help_about.py
+110
-86
Lib/idlelib/idle_test/test_help_about.py
Lib/idlelib/idle_test/test_help_about.py
+9
-9
No files found.
Lib/idlelib/help_about.py
View file @
5a346d5d
This diff is collapsed.
Click to expand it.
Lib/idlelib/idle_test/test_help_about.py
View file @
5a346d5d
...
@@ -15,9 +15,9 @@ import unittest
...
@@ -15,9 +15,9 @@ import unittest
About
=
help_about
.
AboutDialog
About
=
help_about
.
AboutDialog
class
Dummy_about_dialog
():
class
Dummy_about_dialog
():
# Dummy class for testing file display functions.
# Dummy class for testing file display functions.
idle_credits
=
About
.
ShowIDLEC
redits
idle_credits
=
About
.
show_idle_c
redits
idle_readme
=
About
.
ShowIDLEAbout
idle_readme
=
About
.
show_readme
idle_news
=
About
.
ShowIDLENEWS
idle_news
=
About
.
show_idle_news
# Called by the above
# Called by the above
display_file_text
=
About
.
display_file_text
display_file_text
=
About
.
display_file_text
_utest
=
True
_utest
=
True
...
@@ -47,9 +47,9 @@ class AboutDialogTest(unittest.TestCase):
...
@@ -47,9 +47,9 @@ class AboutDialogTest(unittest.TestCase):
def
test_printer_dialog
(
self
):
def
test_printer_dialog
(
self
):
"""This will test dialog which using printer"""
"""This will test dialog which using printer"""
buttons
=
[(
license
,
self
.
dialog
.
buttonL
icense
),
buttons
=
[(
license
,
self
.
dialog
.
py_l
icense
),
(
copyright
,
self
.
dialog
.
buttonC
opyright
),
(
copyright
,
self
.
dialog
.
py_c
opyright
),
(
credits
,
self
.
dialog
.
buttonC
redits
)]
(
credits
,
self
.
dialog
.
py_c
redits
)]
for
printer
,
button
in
buttons
:
for
printer
,
button
in
buttons
:
dialog
=
self
.
dialog
dialog
=
self
.
dialog
...
@@ -64,9 +64,9 @@ class AboutDialogTest(unittest.TestCase):
...
@@ -64,9 +64,9 @@ class AboutDialogTest(unittest.TestCase):
def
test_file_dialog
(
self
):
def
test_file_dialog
(
self
):
"""This will test dialog which using file"""
"""This will test dialog which using file"""
buttons
=
[(
'README.txt'
,
self
.
dialog
.
idle_about_b
),
buttons
=
[(
'README.txt'
,
self
.
dialog
.
readme
),
(
'NEWS.txt'
,
self
.
dialog
.
idle_news
_b
),
(
'NEWS.txt'
,
self
.
dialog
.
idle_news
),
(
'CREDITS.txt'
,
self
.
dialog
.
idle_credits
_b
)]
(
'CREDITS.txt'
,
self
.
dialog
.
idle_credits
)]
for
filename
,
button
in
buttons
:
for
filename
,
button
in
buttons
:
dialog
=
self
.
dialog
dialog
=
self
.
dialog
...
...
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