Show More
@@ -607,9 +607,7 b' def display_by_method(data, fp):' | |||||
607 | # only show line numbers for significant locations (>1% time spent) |
|
607 | # only show line numbers for significant locations (>1% time spent) | |
608 | if stat.selfpercent() > 1: |
|
608 | if stat.selfpercent() > 1: | |
609 | source = stat.site.getsource(25) |
|
609 | source = stat.site.getsource(25) | |
610 | if sys.version_info.major >= 3 and not isinstance( |
|
610 | if not isinstance(source, bytes): | |
611 | source, bytes |
|
|||
612 | ): |
|
|||
613 | source = pycompat.bytestr(source) |
|
611 | source = pycompat.bytestr(source) | |
614 |
|
612 | |||
615 | stattuple = ( |
|
613 | stattuple = ( |
General Comments 0
You need to be logged in to leave comments.
Login now