Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Check for .pyd as extension for binary files.

Closes gh-497
  • Loading branch information...
commit 3902dd419107f14ca6afdfd6d67c0ed357a85224 1 parent 657504e
Thomas Kluyver authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  IPython/core/oinspect.py
2  IPython/core/oinspect.py
View
@@ -549,7 +549,7 @@ def info(self, obj, oname='', formatter=None, info=None, detail_level=0):
fname = inspect.getabsfile(obj.__class__)
if fname.endswith('<string>'):
fname = 'Dynamically generated function. No source code available.'
- if (fname.endswith('.so') or fname.endswith('.dll')):
+ if any(fname.endswith(e) for e in ['.so', '.dll', '.pyd']):
binary_file = True
out['file'] = fname
except:
Please sign in to comment.
Something went wrong with that request. Please try again.