From 3ff2e7d09f4c39215e30f3a4d03d8825ea36a2dd 2011-07-12 17:30:59
From: Jörgen Stenarson <jorgen.stenarson@bostream.nu>
Date: 2011-07-12 17:30:59
Subject: [PATCH] Reverting debugging code left in b4b4ede

---

diff --git a/IPython/core/prompts.py b/IPython/core/prompts.py
index e08c249..2964320 100644
--- a/IPython/core/prompts.py
+++ b/IPython/core/prompts.py
@@ -224,9 +224,9 @@ def str_safe(arg):
         except Exception,msg:
             # let's keep this little duplication here, so that the most common
             # case doesn't suffer from a double try wrapping.
-            out = '<ERRORx: %s>' % msg
+            out = '<ERROR: %s>' % msg
     except Exception,msg:
-        out = '<ERRORy: %s>' % msg
+        out = '<ERROR: %s>' % msg
         #raise  # dbg
     return out
 
diff --git a/IPython/external/Itpl/_Itpl.py b/IPython/external/Itpl/_Itpl.py
index bd69235..671e9ab 100644
--- a/IPython/external/Itpl/_Itpl.py
+++ b/IPython/external/Itpl/_Itpl.py
@@ -196,7 +196,7 @@ class Itpl:
         for live, chunk in self.chunks:
             if live: app(str(eval(chunk,glob,loc)))
             else: app(chunk)
-        out = u''.join(result)
+        out = ''.join(result)
         try:
             return str(out)
         except UnicodeError:
@@ -212,9 +212,6 @@ class Itpl:
         loc, glob = frame.f_locals, frame.f_globals
 
         return self._str(glob,loc)
-
-    def encode(self, encoding, errors):
-        return str(self)#.encode(encoding, errors)
     
 class ItplNS(Itpl):
     """Class representing a string with interpolation abilities.