[PATCH 1/2] Do not add errors item for thread in advance
Vratislav Podzimek
vpodzime at redhat.com
Mon Jan 27 13:36:05 UTC 2014
There is no need to have None in the errors dictionary for every thread no
matter if it caused an error or not.
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
pyanaconda/threads.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/pyanaconda/threads.py b/pyanaconda/threads.py
index 90cde1f..74acef6 100644
--- a/pyanaconda/threads.py
+++ b/pyanaconda/threads.py
@@ -59,7 +59,6 @@ class ThreadManager(object):
raise KeyError("Cannot add thread '%s', a thread with the same name already running" % obj.name)
self._objs[obj.name] = obj
- self._errors[obj.name] = None
obj.start()
return obj.name
--
1.8.5.3
More information about the anaconda-patches
mailing list