Fix minor problems under Python 3 from running the tests
This commit is contained in:
parent
bba30621f1
commit
1c15a9784b
1 changed files with 2 additions and 2 deletions
|
|
@ -351,7 +351,7 @@ class Module(llvm.Ownable, llvm.Cacheable):
|
|||
a module represented in bitcode.
|
||||
"""
|
||||
|
||||
if isinstance(fileobj_or_str, basestring):
|
||||
if _util.isstring(fileobj_or_str):
|
||||
data = fileobj_or_str
|
||||
else:
|
||||
data = fileobj_or_str.read()
|
||||
|
|
@ -373,7 +373,7 @@ class Module(llvm.Ownable, llvm.Cacheable):
|
|||
a module represented in llvm-ir assembly.
|
||||
"""
|
||||
|
||||
if isinstance(fileobj_or_str, basestring):
|
||||
if _util.isstring(fileobj_or_str):
|
||||
data = fileobj_or_str
|
||||
else:
|
||||
data = fileobj_or_str.read()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue