forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythonGH-127456: pathlib ABCs: remove
ParserBase.sep
Remove `ParserBase.sep`, which is the class's only non-method member. Instead, we compute the separator from `PathBase.__init_subclass__()` by calling `parser.join('a', 'a').strip('a')`, and store the result on the subclass as `cls._sep`. We also set `cls._case_sensitive` according to `parser.normcase('Aa') == 'Aa'`, which was previously done in a caching function.
- Loading branch information
1 parent
31c9f3c
commit c09307d
Showing
2 changed files
with
15 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters