Show More
@@ -357,7 +357,7 b' class Inspector:' | |||
|
357 | 357 | # where the object is defined |
|
358 | 358 | ofile = inspect.getabsfile(obj) |
|
359 | 359 | |
|
360 |
if |
|
|
360 | if ofile.endswith(('.so', '.dll', '.pyd')): | |
|
361 | 361 | print 'File %r is binary, not printing.' % ofile |
|
362 | 362 | elif not os.path.isfile(ofile): |
|
363 | 363 | print 'File %r does not exist, not printing.' % ofile |
@@ -549,7 +549,7 b' class Inspector:' | |||
|
549 | 549 | fname = inspect.getabsfile(obj.__class__) |
|
550 | 550 | if fname.endswith('<string>'): |
|
551 | 551 | fname = 'Dynamically generated function. No source code available.' |
|
552 |
if |
|
|
552 | if fname.endswith(('.so', '.dll', '.pyd')): | |
|
553 | 553 | binary_file = True |
|
554 | 554 | out['file'] = fname |
|
555 | 555 | except: |
General Comments 0
You need to be logged in to leave comments.
Login now