Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions guiconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ def _check_valid(dialog, entry, sym, s):
entry.focus_set()
return False

for low_sym, high_sym, cond in sym.ranges:
for low_sym, high_sym, cond, _ in sym.ranges:
if expr_value(cond):
low_s = low_sym.str_value
high_s = high_sym.str_value
Expand All @@ -1330,7 +1330,7 @@ def _range_info(sym):
# 'sym', or None if 'sym' doesn't have a range

if sym.type in (INT, HEX):
for low, high, cond in sym.ranges:
for low, high, cond, _ in sym.ranges:
if expr_value(cond):
return "Range: {}-{}".format(low.str_value, high.str_value)

Expand Down
4 changes: 2 additions & 2 deletions menuconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -3108,7 +3108,7 @@ def _check_valid(sym, s):
.format(s, TYPE_TO_STR[sym.orig_type]))
return False

for low_sym, high_sym, cond in sym.ranges:
for low_sym, high_sym, cond, _ in sym.ranges:
if expr_value(cond):
low_s = low_sym.str_value
high_s = high_sym.str_value
Expand All @@ -3128,7 +3128,7 @@ def _range_info(sym):
# 'sym', or None if 'sym' doesn't have a range

if sym.orig_type in (INT, HEX):
for low, high, cond in sym.ranges:
for low, high, cond, _ in sym.ranges:
if expr_value(cond):
return "Range: {}-{}".format(low.str_value, high.str_value)

Expand Down