Skip to content

Commit 9da4b55

Browse files
committed
Py 3.11 compatibility
1 parent 6029824 commit 9da4b55

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/load.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,7 +1634,7 @@ def get_bodies_summary(bodies: dict[str, PlanetData], focused: bool = False) ->
16341634
scan_label(scan[0].count if scan else 0) if not flora_status[flora.id][1] \
16351635
else tr.tl('Lost', this.translation_context), # LANG: Indicates lost data due to death / respawn
16361636
this.formatter.format_credits(bio_credits),
1637-
f' [{this.formatter.format_unit(bio_genus[genus]["distance"], 'm', False)}]' \
1637+
f' [{this.formatter.format_unit(bio_genus[genus]["distance"], "m", False)}]' \
16381638
if (not scan or (scan and scan[0].count < 3)) and not this.current_scan[0] else '',
16391639
bonus_icon,
16401640
'\N{LIGHT CHECK MARK}' if scan and scan[0].count == 3 and not flora_status[flora.id][1] else '',
@@ -1653,7 +1653,7 @@ def get_bodies_summary(bodies: dict[str, PlanetData], focused: bool = False) ->
16531653
# LANG: Predicted bio not located label
16541654
detail_text += (f'{bio_name} (' + tr.tl('Not located', this.translation_context) +
16551655
f'): {this.formatter.format_credit_range(min_val * mult, max_val * mult)}' +
1656-
(f' [{this.formatter.format_unit(bio_genus[genus]["distance"], 'm', False)}]'
1656+
(f' [{this.formatter.format_unit(bio_genus[genus]["distance"], "m", False)}]'
16571657
if not this.current_scan[0] else '') +
16581658
f'{bonus_icon}\n')
16591659

0 commit comments

Comments
 (0)