From 1c15a9784bcc8cddb625c09653533f0f30c4a326 Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Sun, 30 Sep 2012 14:40:32 +0100 Subject: [PATCH] Fix minor problems under Python 3 from running the tests --- llvm/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/core.py b/llvm/core.py index 6ef2fad..6b1b0aa 100644 --- a/llvm/core.py +++ b/llvm/core.py @@ -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()