mirror of
https://codeberg.org/privacy1st/subprocess-util
synced 2024-12-22 22:06:05 +01:00
refactor
This commit is contained in:
parent
cbbb4231e8
commit
06ff4a516e
@ -11,7 +11,7 @@ long_description = file: README.md
|
|||||||
long_description_content_type = text/markdown
|
long_description_content_type = text/markdown
|
||||||
url = https://codeberg.org/privacy1st/subprocess_util
|
url = https://codeberg.org/privacy1st/subprocess_util
|
||||||
project_urls =
|
project_urls =
|
||||||
Bug Tracker = https://codeberg.org/privacy1st/subprocess_util/issues
|
Bug Tracker = https://codeberg.org/privacy1st/subprocess-util/issues
|
||||||
|
|
||||||
; https://pypi.org/classifiers/
|
; https://pypi.org/classifiers/
|
||||||
classifiers =
|
classifiers =
|
||||||
|
@ -87,6 +87,6 @@ def exec_receive_chunks_active(
|
|||||||
# If no errors occurred, delete the chunk directory.
|
# If no errors occurred, delete the chunk directory.
|
||||||
# But only if we created it ourselves!
|
# But only if we created it ourselves!
|
||||||
if returncode == 0 and created_chunk_dir:
|
if returncode == 0 and created_chunk_dir:
|
||||||
target_chunk_dir.unlink(missing_ok=False)
|
target_chunk_dir.rmdir()
|
||||||
|
|
||||||
return returncode
|
return returncode
|
||||||
|
@ -62,6 +62,6 @@ def exec_send_chunks_passive(
|
|||||||
# If no errors occurred, delete the chunk directory.
|
# If no errors occurred, delete the chunk directory.
|
||||||
# But only if we created it ourselves!
|
# But only if we created it ourselves!
|
||||||
if returncode == 0 and created_chunk_dir:
|
if returncode == 0 and created_chunk_dir:
|
||||||
source_chunk_dir.unlink(missing_ok=False)
|
source_chunk_dir.rmdir()
|
||||||
|
|
||||||
return returncode
|
return returncode
|
||||||
|
@ -55,6 +55,6 @@ def exec_receive_chunks_passive(
|
|||||||
# If no errors occurred, delete the chunk directory.
|
# If no errors occurred, delete the chunk directory.
|
||||||
# But only if we created it ourselves!
|
# But only if we created it ourselves!
|
||||||
if returncode == 0 and created_chunk_dir:
|
if returncode == 0 and created_chunk_dir:
|
||||||
target_chunk_dir.unlink(missing_ok=False)
|
target_chunk_dir.rmdir()
|
||||||
|
|
||||||
return returncode
|
return returncode
|
||||||
|
@ -58,6 +58,6 @@ def exec_send_chunks_active(
|
|||||||
# If no errors occurred, delete the chunk directory.
|
# If no errors occurred, delete the chunk directory.
|
||||||
# But only if we created it ourselves!
|
# But only if we created it ourselves!
|
||||||
if returncode == 0 and created_chunk_dir:
|
if returncode == 0 and created_chunk_dir:
|
||||||
source_chunk_dir.unlink(missing_ok=False)
|
source_chunk_dir.rmdir()
|
||||||
|
|
||||||
return returncode
|
return returncode
|
||||||
|
Loading…
Reference in New Issue
Block a user