8000 Fix non-matching bracket pairs by mohamadmansourX · Pull Request #28473 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Fix non-matching bracket pairs #28473

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 13 commits into from
Sep 21, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
  • Loading branch information
ambv and serhiy-storchaka authored Sep 21, 2021
commit 683bea4f3408c846569204c306c9cfb031fc0f24
2 changes: 1 addition & 1 deletion Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ Pure paths provide the following methods and properties:
Traceback (most recent call last):
File "< 8000 ;stdin>", line 1, in <module>
File "pathlib.py", line 694, in relative_to
Copy link
Member

Choose a reason for hiding this comment

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

The line # is obsolete. Could change. In 3.10/11

Suggested change
File "pathlib.py", line 694, in relative_to
File "pathlib.py", line 818, in relative_to

was 941 in 3.9 but not worth the bother to change in backport.

.format(str(self), str(formatted))
.format(str(self), str(formatted)))
ValueError: '/etc/passwd' is not in the subpath of '/usr' OR one path is relative and the other absolute.

NOTE: This function is part of :class:`PurePath` and works with strings. It does not check or access the underlying file structure.
Expand Down
2 changes: 1 addition & 1 deletion Include/cpython/unicodeobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ enum PyUnicode_Kind {


/* Fast check to determine whether an object is ready. Equivalent to
PyUnicode_IS_COMPACT(op) || (((PyUnicodeObject*)(op))->data.any) */
PyUnicode_IS_COMPACT(op) || ((PyUnicodeObject*)(op))->data.any */

#define PyUnicode_IS_READY(op) (((PyASCIIObject*)op)->state.ready)

Expand Down
0