Skip to content

[2.7] bpo-33422: Fix quotation marks getting deleted when looking up … #6712

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 7, 2018

Conversation

andresdelfino
Copy link
Contributor

@andresdelfino andresdelfino commented May 5, 2018

…byte/string literals on pydoc. (GH-6701)

Also update the list of string prefixes..
(cherry picked from commit b2043bb)

Co-authored-by: Andrés Delfino [email protected]

https://bugs.python.org/issue33422

…byte/string literals on pydoc. (pythonGH-6701)

Also update the list of string prefixes..
(cherry picked from commit b2043bb)

Co-authored-by: Andrés Delfino <[email protected]>
Lib/pydoc.py Outdated
@@ -1811,7 +1812,9 @@ def interact(self):
if not request: break
except (KeyboardInterrupt, EOFError):
break
request = strip(replace(request, '"', '', "'", ''))
if (len(request) > 2 and request[0] == request[-1] in ("'", '"')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed strip().

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😅

@serhiy-storchaka serhiy-storchaka self-assigned this May 6, 2018
@serhiy-storchaka serhiy-storchaka merged commit c40eeeb into python:2.7 May 7, 2018
@andresdelfino andresdelfino deleted the backport-b2043bb-2.7 branch May 8, 2018 22:01
@serhiy-storchaka serhiy-storchaka removed their assignment Dec 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants