[PR #242] [MERGED] Replace distutils.dir_utils.mkpath with pathlib.Path.mkdir(parents=True) #242

Closed
opened 2026-02-25 20:35:02 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/B16f00t/whapa/pull/242
Author: @orogenic
Created: 7/14/2025
Status: Merged
Merged: 7/15/2025
Merged by: @B16f00t

Base: masterHead: replace-distutils-with-pathlib


📝 Commits (1)

  • a4e8436 Replace distutils.dir_utils.mkpath with pathlib.Path.mkdir(parents=True)

📊 Changes

1 file changed (+13 additions, -13 deletions)

View changed files

📝 libs/whapa.py (+13 -13)

📄 Description

pathlib was added in Python 3.4: https://docs.python.org/3.4/library/pathlib.html#pathlib.Path.mkdir
distutils was removed in Python 3.12: https://docs.python.org/3.12/library/distutils.html

pathlib.Path.mkdir(parents=True) is a suitable replacement for distutils.dir_util.mkpath():


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/B16f00t/whapa/pull/242 **Author:** [@orogenic](https://github.com/orogenic) **Created:** 7/14/2025 **Status:** ✅ Merged **Merged:** 7/15/2025 **Merged by:** [@B16f00t](https://github.com/B16f00t) **Base:** `master` ← **Head:** `replace-distutils-with-pathlib` --- ### 📝 Commits (1) - [`a4e8436`](https://github.com/B16f00t/whapa/commit/a4e843653fabbbe038f18be58f8b7896078926f5) Replace distutils.dir_utils.mkpath with pathlib.Path.mkdir(parents=True) ### 📊 Changes **1 file changed** (+13 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `libs/whapa.py` (+13 -13) </details> ### 📄 Description pathlib was added in Python 3.4: https://docs.python.org/3.4/library/pathlib.html#pathlib.Path.mkdir distutils was removed in Python 3.12: https://docs.python.org/3.12/library/distutils.html pathlib.Path.mkdir(parents=True) is a suitable replacement for distutils.dir_util.mkpath(): - https://docs.python.org/3.11/distutils/apiref.html#distutils.dir_util.mkpath - https://docs.python.org/3.4/library/pathlib.html?highlight=pathlib#pathlib.Path.mkdir --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 20:35:02 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whapa#242
No description provided.