diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-12 04:45:03 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-12 04:45:03 +0100 |
| commit | 462fbc4e873d274d719c6aab60286c3d4afdfe11 (patch) | |
| tree | fec3d0774270fc001511d6b2a137ae26a88bd50c | |
| parent | 9914968a94481f84ad0d9cfcb1f5e85334626042 (diff) | |
Use 'type' instead of 'get_type()' internally.
| -rw-r--r-- | kconfiglib.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 66e153c..95dfe2a 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -1040,8 +1040,8 @@ class Config(): # choice item if choice.type == UNKNOWN: for item in choice.get_actual_items(): - if item.get_type() != UNKNOWN: - choice.type = item.get_type() + if item.type != UNKNOWN: + choice.type = item.type break # Each choice item of UNKNOWN type gets the type of the choice @@ -1670,7 +1670,7 @@ error, and you should e-mail kconfiglib@gmail.com. defaults_str_rows = [] for (val_expr, cond_expr) in sc.orig_def_exprs: - row_str = " " + self._expr_val_str(val_expr, "(none)", sc.get_type() == STRING) + row_str = " " + self._expr_val_str(val_expr, "(none)", sc.type == STRING) defaults_str_rows.append(row_str) defaults_str_rows.append(" Condition: " + self._expr_val_str(cond_expr)) |
