From a2a3087d4a2f00fa48c5c064dff07937a226094a 2012-10-08 23:01:26
From: MinRK <benjaminrk@gmail.com>
Date: 2012-10-08 23:01:26
Subject: [PATCH] cast unicode in oinspect.find_file
---

diff --git a/IPython/core/oinspect.py b/IPython/core/oinspect.py
index dc4ab87..67eb771 100644
--- a/IPython/core/oinspect.py
+++ b/IPython/core/oinspect.py
@@ -296,7 +296,7 @@ def find_file(obj):
                 pass
     except:
         pass
-    return fname
+    return cast_unicode(fname)
 
 
 def find_source_lines(obj):