code/source: remove unneeded assert
inspect.getsource() definitely returns str.
This commit is contained in:
parent
c6083ab970
commit
c83e16ab2e
|
@ -309,7 +309,6 @@ def getrawcode(obj, trycall: bool = True):
|
||||||
def getsource(obj) -> Source:
|
def getsource(obj) -> Source:
|
||||||
obj = getrawcode(obj)
|
obj = getrawcode(obj)
|
||||||
strsrc = inspect.getsource(obj)
|
strsrc = inspect.getsource(obj)
|
||||||
assert isinstance(strsrc, str)
|
|
||||||
return Source(strsrc)
|
return Source(strsrc)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue