Skip to content

Commit

Permalink
Use multi-arg print() (so trivial!)
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <mgorny@gentoo.org>
  • Loading branch information
mgorny committed Sep 19, 2022
1 parent acd0bd5 commit af55d46
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions eselect-repo-helper
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def do_list(args):

for name, data in sorted(repos.items(),
key=lambda kv: locale.strxfrm(kv[0])):
print(f"{name} {data['status']} {(data['url'] or '').strip()}")
print(name, data["status"], (data['url'] or '').strip())


def do_metadata(args):
Expand All @@ -70,7 +70,7 @@ def do_metadata(args):

for r in args.repo:
if r not in args.repos_conf:
print(f"{r} not-exist")
print(r, "not-exist")
continue

if r not in all_repos:
Expand All @@ -80,7 +80,7 @@ def do_metadata(args):
else:
state = 'remote'
local_path = args.repos_conf[r].get('location', '')
print(f"{r} {state} {local_path}")
print(r, state, local_path)


def do_remote_metadata(args):
Expand All @@ -90,10 +90,10 @@ def do_remote_metadata(args):

for r in args.repo:
if r in args.repos_conf:
print(f"{r} enabled {args.repos_conf[r].get('location', '')}")
print(r, "enabled", args.repos_conf[r].get('location', ''))
continue
if r not in all_repos:
print(f"{r} not-exist")
print(r, "not-exist")
continue

sources = all_repos[r].findall('source')
Expand All @@ -102,10 +102,10 @@ def do_remote_metadata(args):
if sync_data is not None:
break
else:
print(f"{r} unsupported")
print(r, "unsupported")
continue

print(f"{r} remote {sync_data[0]} {sync_data[1]}")
print(r, "remote", *sync_data)


def make_configparser(path):
Expand Down

0 comments on commit af55d46

Please sign in to comment.