Commit a5b6ecd
committed
Fix Symbol.ranges unpacking
The Symbol.ranges attribute in kconfiglib returns 4-tuples (low, high,
cond, loc), but menuconfig and guiconfig were using the old 3-tuple
unpacking pattern, causing ValueError when processing integer/hex symbols
with range properties.
Changes:
- Update all sym.ranges unpacking to handle 4-tuple format
- Use underscore (_) for unused location parameter to indicate intent
- Standardize on sym.orig_type instead of sym.type for consistency with
kconfiglib internals and to avoid potential issues with type transformations1 parent e1f15e3 commit a5b6ecd
2 files changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1844 | 1844 | | |
1845 | 1845 | | |
1846 | 1846 | | |
1847 | | - | |
| 1847 | + | |
1848 | 1848 | | |
1849 | 1849 | | |
1850 | 1850 | | |
1851 | | - | |
| 1851 | + | |
1852 | 1852 | | |
1853 | 1853 | | |
1854 | 1854 | | |
1855 | 1855 | | |
1856 | 1856 | | |
1857 | | - | |
| 1857 | + | |
1858 | 1858 | | |
1859 | 1859 | | |
1860 | 1860 | | |
1861 | 1861 | | |
1862 | 1862 | | |
1863 | | - | |
| 1863 | + | |
1864 | 1864 | | |
1865 | 1865 | | |
1866 | 1866 | | |
| |||
1883 | 1883 | | |
1884 | 1884 | | |
1885 | 1885 | | |
1886 | | - | |
1887 | | - | |
| 1886 | + | |
| 1887 | + | |
1888 | 1888 | | |
1889 | 1889 | | |
1890 | 1890 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4104 | 4104 | | |
4105 | 4105 | | |
4106 | 4106 | | |
4107 | | - | |
| 4107 | + | |
4108 | 4108 | | |
4109 | 4109 | | |
4110 | 4110 | | |
| |||
4123 | 4123 | | |
4124 | 4124 | | |
4125 | 4125 | | |
4126 | | - | |
| 4126 | + | |
4127 | 4127 | | |
4128 | 4128 | | |
4129 | 4129 | | |
| |||
0 commit comments