Skip to content

Commit

Permalink
Change map to zip
Browse files Browse the repository at this point in the history
* Adds support for python3, still compatible with python2.
* Resolves qmk#10
* Resolves qmk#19

Co-authored-by: Ori <[email protected]>
Co-authored-by: Manna Harbour <[email protected]>
  • Loading branch information
3 people committed May 12, 2021
1 parent 14e8017 commit 3eccfab
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 3eccfab

Please sign in to comment.