Skip to content

Commit b25bc8d

Browse files
committed
Wrong import for some reason
1 parent e7fee04 commit b25bc8d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

beets/ui/commands/import_/session.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from beets.autotag import Recommendation
77
from beets.util import displayable_path
88
from beets.util.units import human_bytes, human_seconds_short
9-
from beetsplug.bareasc import print_
109

1110
from .display import (
1211
disambig_string,
@@ -415,8 +414,8 @@ def choose_candidate(
415414
if singleton:
416415
ui.print_("No matching recordings found.")
417416
else:
418-
print_(f"No matching release found for {itemcount} tracks.")
419-
print_(
417+
ui.print_(f"No matching release found for {itemcount} tracks.")
418+
ui.print_(
420419
"For help, see: "
421420
"https://beets.readthedocs.org/en/latest/faq.html#nomatch"
422421
)
@@ -461,17 +460,17 @@ def choose_candidate(
461460
else:
462461
metadata = ui.colorize("text_highlight_minor", metadata)
463462
line1 = [index, distance, metadata]
464-
print_(f" {' '.join(line1)}")
463+
ui.print_(f" {' '.join(line1)}")
465464

466465
# Penalties.
467466
penalties = penalty_string(match.distance, 3)
468467
if penalties:
469-
print_(f"{' ' * 13}{penalties}")
468+
ui.print_(f"{' ' * 13}{penalties}")
470469

471470
# Disambiguation
472471
disambig = disambig_string(match.info)
473472
if disambig:
474-
print_(f"{' ' * 13}{disambig}")
473+
ui.print_(f"{' ' * 13}{disambig}")
475474

476475
# Ask the user for a choice.
477476
sel = ui.input_options(choice_opts, numrange=(1, len(candidates)))

0 commit comments

Comments
 (0)