Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change usage of map() to zip() #10

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions users/manna-harbour_miryoku/miryoku.org
Original file line number Diff line number Diff line change
Expand Up @@ -482,9 +482,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 @@ -532,7 +532,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