[master][PATCH] Use the right index for selecting region (#1114234)
Vratislav Podzimek
vpodzime at redhat.com
Mon Jun 30 15:10:45 UTC 2014
'id' is a Python builtin, 'index' is a variable that is used as an index in that
block of code.
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
pyanaconda/ui/tui/spokes/time_spoke.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/ui/tui/spokes/time_spoke.py b/pyanaconda/ui/tui/spokes/time_spoke.py
index 62a1b23..3995a70 100644
--- a/pyanaconda/ui/tui/spokes/time_spoke.py
+++ b/pyanaconda/ui/tui/spokes/time_spoke.py
@@ -104,7 +104,7 @@ class TimeZoneSpoke(FirstbootSpokeMixIn, NormalTUISpoke):
self.apply()
self.close()
else:
- self.app.switch_screen(self, self._regions[id])
+ self.app.switch_screen(self, self._regions[index])
return INPUT_PROCESSED
elif key.lower() == "b":
self.app.switch_screen(self, None)
--
1.9.3
More information about the anaconda-patches
mailing list