Skip to content

Commit 9d4a37f

Browse files
committed
Fix up some f-string inconsistencies and Makefile targets
1 parent efdf877 commit 9d4a37f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ $(WHEEL): install-dev FORCE
445445
install: $(WHEEL) FORCE
446446
$(PYTHON) -m pip install --no-user --force-reinstall $<[$(MIN)]
447447

448-
install-all:
448+
install-all: $(WHEEL) FORCE
449449
$(PYTHON) -m pip install --no-user --force-reinstall $<[$(ALL)]
450450

451451
install-%: # ...-dev, -tests, -gui, -serial, -wallet, -invoice

slip39/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def int_seq( seq ):
317317
end = seq[nxt:] if nxt < len( seq ) else []
318318
seq = beg + [f"{seq[rng[0]]}-{seq[rng[1]]}"] + end
319319
if final and len(seq) > 1:
320-
seq = seq[:-2] + [f"{seq[-2]} {final} {seq[-1]}"]
320+
seq = seq[:-2] + [f" {final} ".join( map( str, seq[-2:] ))]
321321
return ', '.join( map( str, seq ))
322322

323323

@@ -554,7 +554,7 @@ class mixed_fraction( Fraction ):
554554
def __str__( self ):
555555
whole, rest = divmod( self.numerator, self.denominator )
556556
if whole and rest:
557-
return f"{whole}+{Fraction( rest, self.denominator)}"
557+
return f"{whole}+{Fraction( rest, self.denominator )}"
558558
return super().__str__()
559559

560560

0 commit comments

Comments
 (0)