From bd9ab78fb259d02a121adbba3f8dface32b322d9 2013-01-26 20:54:15 From: Greg Caporaso Date: 2013-01-26 20:54:15 Subject: [PATCH] updated based on comment from @takluyver --- diff --git a/IPython/lib/display.py b/IPython/lib/display.py index 98102ef..1cee3a2 100644 --- a/IPython/lib/display.py +++ b/IPython/lib/display.py @@ -233,7 +233,7 @@ class FileLinks(FileLink): result.append(dirname_output_line) for fname in display_fnames: fp = fp_format % (dirname,fname) - if fp_cleaner != None: + if fp_cleaner is not None: fp = fp_cleaner(fp) try: # output can include both a filepath and a filename...