mirror of https://github.com/python/cpython
SF #1062190. Removed an assertion that rendered trace.py unnecessarily
inflexibile.
This commit is contained in:
parent
fb1ffb0ebb
commit
481b09b352
|
@ -416,7 +416,6 @@ def find_strings(filename):
|
||||||
|
|
||||||
def find_executable_linenos(filename):
|
def find_executable_linenos(filename):
|
||||||
"""Return dict where keys are line numbers in the line number table."""
|
"""Return dict where keys are line numbers in the line number table."""
|
||||||
assert filename.endswith('.py')
|
|
||||||
try:
|
try:
|
||||||
prog = open(filename, "rU").read()
|
prog = open(filename, "rU").read()
|
||||||
except IOError, err:
|
except IOError, err:
|
||||||
|
|
Loading…
Reference in New Issue