code/source: remove unneeded assert

inspect.getsource() definitely returns str.
This commit is contained in:
Ran Benita 2020-07-01 20:20:09 +03:00
parent c6083ab970
commit c83e16ab2e
1 changed files with 0 additions and 1 deletions

View File

@ -309,7 +309,6 @@ def getrawcode(obj, trycall: bool = True):
def getsource(obj) -> Source:
obj = getrawcode(obj)
strsrc = inspect.getsource(obj)
assert isinstance(strsrc, str)
return Source(strsrc)