From 486d291190ce89e94a65e92ef5bf3ecb09d4eb4c 2012-08-27 06:06:48 From: Jörgen Stenarson Date: 2012-08-27 06:06:48 Subject: [PATCH] Compare against python2 str version --- diff --git a/IPython/core/ultratb.py b/IPython/core/ultratb.py index fc61652..16130a1 100644 --- a/IPython/core/ultratb.py +++ b/IPython/core/ultratb.py @@ -777,7 +777,7 @@ class VerboseTB(TBTools): #print '*** record:',file,lnum,func,lines,index # dbg if not file: file = '?' - elif not(file.startswith("<") and file.endswith(">")): + elif not(file.startswith(str("<")) and file.endswith(str(">"))): # Guess that filenames like aren't real filenames, so # don't call abspath on them. try: