Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix and style unification #455

Merged
merged 3 commits into from
Sep 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions datalad_next/annexremotes/uncurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
for a dataset (as shown above)::

$ echo '[{"url":"ssh://my.server.org/home/me/file", "file":"dummy"}]' \\
| datalad addurls - '{url}' {'file'}
| datalad addurls - '{url}' '{file}'

This makes legacy commands (e.g., ``datalad download-url``), unnecessary, and
facilitates the use of more advanced ``datalad addurls`` features (e.g.,
Expand Down Expand Up @@ -411,7 +411,7 @@ def remove(self, key):
)
except UrlOperationsResourceUnknown:
self.message(
'f{key} not found at the remote, skipping', type='debug')
f'{key!r} not found at the remote, skipping', type='debug')

#
# helpers
Expand All @@ -424,7 +424,7 @@ def get_key_urls(self, key) -> list[str]:
# this will also work within checkurl() for a temporary key
# generated by git-annex after claimurl()
urls = self.annex.geturls(key, prefix='')
self.message(f"Known urls for {key!r}: {urls}", type='debug')
self.message(f'Known urls for {key!r}: {urls}', type='debug')
if self.url_tmpl:
# we have a rewriting template. extract all properties
# from all known URLs and instantiate the template
Expand Down