bpo-33185: Improve wording and markup (GH-6477) · python/cpython@986eaa8 · GitHub
Skip to content

Commit 986eaa8

Browse files
bpo-33185: Improve wording and markup (GH-6477)
Adds some working and markup fixes that I missed in the initial commit for this issue. (Follow-up to GH-6419) (cherry picked from commit 1a5c4bd) Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
1 parent d7ffa58 commit 986eaa8

4 files changed

Lines changed: 12 additions & 10 deletions

File tree

Doc/whatsnew/3.7.rst

Lines changed: 7 additions & 5 deletions

Lib/pydoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2643,7 +2643,7 @@ def _get_revised_path(given_path, argv0):
26432643

26442644
# Note: the tests only cover _get_revised_path, not _adjust_cli_path itself
26452645
def _adjust_cli_sys_path():
2646-
"""Ensures current directory is on sys.path, and __main__ directory is not
2646+
"""Ensures current directory is on sys.path, and __main__ directory is not.
26472647
26482648
Exception: __main__ dir is left alone if it's also pydoc's directory.
26492649
"""

Lib/test/test_pydoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ def _get_revised_path(self, given_path, argv0=None):
11031103
return pydoc._get_revised_path(given_path, argv0)
11041104

11051105
def _get_starting_path(self):
1106-
# Get a copy of sys.path without the current directory
1106+
# Get a copy of sys.path without the current directory.
11071107
clean_path = sys.path.copy()
11081108
for spelling in self.curdir_spellings:
11091109
for __ in range(clean_path.count(spelling)):
Lines changed: 3 additions & 3 deletions

0 commit comments

Comments
 (0)