Skip to content

Commit

Permalink
pythonGH-89812: Churn pathlib.Path methods (pythonGH-104243)
Browse files Browse the repository at this point in the history
Re-arrange `pathlib.Path` methods in source code. No other changes.

The methods are arranged as follows:

1. `stat()` and dependants (`exists()`, `is_dir()`, etc)
2. `open()` and dependants (`read_text()`, `write_bytes()`, etc)
3. `iterdir()` and dependants (`glob()`, `walk()`, etc)
4. All other `Path` methods

This patch prepares the ground for a new `_AbstractPath` class, which will
support the methods in groups 1, 2 and 3 above. By churning the methods
here, subsequent patches will be easier to review and less likely to break
things.
  • Loading branch information
barneygale authored and jbower-fb committed May 8, 2023
1 parent c195a2c commit 3145c0f
Showing 1 changed file with 303 additions and 303 deletions.
Loading

0 comments on commit 3145c0f

Please sign in to comment.