[PATCH 4/4] Use join method instead of the joinfields function

Vratislav Podzimek vpodzime at redhat.com
Tue Oct 8 12:31:24 UTC 2013


Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
 meh/dump.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/meh/dump.py b/meh/dump.py
index 9fe9003..0a1e67b 100644
--- a/meh/dump.py
+++ b/meh/dump.py
@@ -23,7 +23,6 @@
 #
 import copy
 import inspect
-from string import joinfields
 import os
 import traceback
 import types
@@ -258,7 +257,7 @@ class ExceptionDump(object):
         if self.type is not None and self.value is not None:
             lst.extend(traceback.format_exception_only(self.type, self.value))
 
-        return joinfields(lst, "")
+        return "".join(lst)
 
     def _format_stack(self):
         if not self.stack:
@@ -517,4 +516,4 @@ class ReverseExceptionDump(ExceptionDump):
         if self.type is not None and self.value is not None:
             lst.extend(traceback.format_exception_only(self.type, self.value))
 
-        return joinfields(lst, "")
+        return "".join(lst)
-- 
1.7.11.7



More information about the anaconda-patches mailing list