[master 1/1] Fix the types used to write anaconda-tb-all.log
dashea
installerbot-noreply at redhat.com
Fri Jun 26 20:50:58 UTC 2015
From: David Shea <dshea at redhat.com>
---
pyanaconda/anaconda.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/anaconda.py b/pyanaconda/anaconda.py
index 8b75d62..cf16e54 100644
--- a/pyanaconda/anaconda.py
+++ b/pyanaconda/anaconda.py
@@ -201,8 +201,8 @@ def dumpState(self):
(fd, filename) = mkstemp(prefix="anaconda-tb-", dir="/tmp")
dump_text = exn.traceback_and_object_dump(self)
dump_text += threads
- dump_text = dump_text.encode("utf-8")
- iutil.eintr_retry_call(os.write, fd, dump_text)
+ dump_text_bytes = dump_text.encode("utf-8")
+ iutil.eintr_retry_call(os.write, fd, dump_text_bytes)
iutil.eintr_ignore(os.close, fd)
# append to a given file
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/1c656a1d9a77f78327a8469f6b57265b997a3a4c
More information about the anaconda-patches
mailing list