summaryrefslogtreecommitdiff
path: root/python/platform.py
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2020-05-08 12:41:14 -0400
committerJordan Wiens <jordan@psifertex.com>2020-05-08 12:41:14 -0400
commit5989dde16b61840ff4c334a3064959cc0675759b (patch)
treed80ddb51a261f109cce51859c782fe4e2b56d6e9 /python/platform.py
parent50261c6e5ee1b46309120549633be5c988205486 (diff)
cleaner check for types on parse_type_from_source
Diffstat (limited to 'python/platform.py')
-rw-r--r--python/platform.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/platform.py b/python/platform.py
index 0fef566f..5031d2d6 100644
--- a/python/platform.py
+++ b/python/platform.py
@@ -402,7 +402,7 @@ class Platform(with_metaclass(_PlatformMetaClass, object)):
if filename is None:
filename = "input"
- if not isinstance(source, str):
+ if not (isinstance(source, str) or isinstance(source, unicode)):
raise AttributeError("Source must be a string")
dir_buf = (ctypes.c_char_p * len(include_dirs))()
for i in range(0, len(include_dirs)):