[2.7] bpo-33422: Fix quotation marks getting deleted when looking up … by andresdelfino · Pull Request #6712 · python/cpython

Conversation

…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 <adelfino@gmail.com>

serhiy-storchaka

except (KeyboardInterrupt, EOFError):
break
request = strip(replace(request, '"', '', "'", ''))
if (len(request) > 2 and request[0] == request[-1] in ("'", '"')

Choose a reason for hiding this comment

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

Missed strip().

Choose a reason for hiding this comment

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

😅

Labels

type-bug

An unexpected behavior, bug, or error