Skip to content

Commit 53bf831

Browse files
committed
Cleanup.
1 parent 6f7804b commit 53bf831

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pip install icloudpd
1818
1919
## Usage
2020

21-
[//]: # "This is now only a copy&paste from --help output"
21+
[//]: # (This is now only a copy&paste from --help output)
2222

2323
``` plain
2424
Usage: icloudpd.py <options>

icloudpd/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def main(
254254
sys.exit(2)
255255

256256
if auto_delete and delete_after_download:
257-
print('--auto-delete and --delete-on-download are mutually exclusive')
257+
print('--auto-delete and --delete-after-download are mutually exclusive')
258258
sys.exit(2)
259259

260260
raise_error_on_2sa = (

icloudpd/download.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,16 @@ def update_mtime(photo, download_path):
2727
return
2828
set_utime(download_path, created_date)
2929

30-
3130
def set_utime(download_path, created_date):
3231
"""Set date & time of the file"""
3332
ctime = time.mktime(created_date.timetuple())
3433
os.utime(download_path, (ctime, ctime))
3534

36-
3735
def download_media(icloud, photo, download_path, size):
3836
"""Download the photo to path, with retries and error handling"""
3937
logger = setup_logger()
4038

41-
# get back the directory for the file to be downloaded and create it if
42-
# not there already
39+
# get back the directory for the file to be downloaded and create it if not there already
4340
download_dir = os.path.dirname(download_path)
4441

4542
if not os.path.exists(download_dir):

tests/test_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,4 @@ def test_conflict_options_delete_after_download_and_auto_delete(self):
161161
"--auto-delete",
162162
],
163163
)
164-
assert result.exit_code == 2
164+
assert result.exit_code == 2

0 commit comments

Comments
 (0)