[
https://issues.apache.org/jira/browse/AIRFLOW-4537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16843505#comment-16843505
]
ASF GitHub Bot commented on AIRFLOW-4537:
-----------------------------------------
potiuk commented on pull request #5301: [AIRFLOW-4537] Remove the mkdir_p
function in favour of native Python pathlib
URL: https://github.com/apache/airflow/pull/5301
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Cleanup the mkdir_p function
> ----------------------------
>
> Key: AIRFLOW-4537
> URL: https://issues.apache.org/jira/browse/AIRFLOW-4537
> Project: Apache Airflow
> Issue Type: Sub-task
> Reporter: Bas Harenslak
> Assignee: Bas Harenslak
> Priority: Major
>
> configuration.mkdir_p seems to come straight from
> [https://stackoverflow.com/a/600612.]
> Now with Python 3.5, we have this functionality native. From the same post:
> {{pathlib.Path("/tmp/path/to/desired/directory").mkdir(parents=True,
> exist_ok=True)}}
> Remove the custom mkdir_p function and replace by pathlib. Will also resolve
> some imports to configuration, just for mkdir_p.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)