Skip to content

Commit

Permalink
Update Miryoku for Python 3
Browse files Browse the repository at this point in the history
Use zip instead of map with None passed as function (no longer works
in Python 3)

Closes sevanteri#18
  • Loading branch information
obar committed Mar 15, 2021
1 parent 14e8017 commit a1373a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions users/manna-harbour_miryoku/miryoku.org
Original file line number Diff line number Diff line change
Expand Up @@ -490,9 +490,9 @@ for symbol, name, shifted_symbol, shifted_name in symbol_names_table:
symbol_names_dict[symbol] = name
symbol_names_dict[shifted_symbol] = shifted_name
results = ' [' + layer_name + '] = LAYOUT_miryoku(\n'
for tap_row, hold_row in map(None, tap_table, hold_table):
for tap_row, hold_row in zip(tap_table, hold_table):
results += ' '
for tap, hold in map(None, tap_row, hold_row):
for tap, hold in zip(tap_row, hold_row):
if tap == '':
code = 'U_NU'
elif tap in symbol_names_dict:
Expand Down Expand Up @@ -540,7 +540,7 @@ for symbol, name, shifted_symbol, shifted_name in symbol_names_table:
length = len(half_table[0])
mode = layer_name[-1:].lower()
results = ' [' + layer_name + '] = LAYOUT_miryoku(\n'
for half_row, hold_row in map(None, half_table, hold_table):
for half_row, hold_row in zip(half_table, hold_table):
results += ' '
hold_row_l, hold_row_r = hold_row[:length], hold_row[length:]
for lr, hold_row_lr in ('l', hold_row_l), ('r', hold_row_r):
Expand Down

0 comments on commit a1373a4

Please sign in to comment.