summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Compiler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Compiler.py b/src/Compiler.py
index c7ae2f7..1d00ff6 100644
--- a/src/Compiler.py
+++ b/src/Compiler.py
@@ -1566,8 +1566,8 @@ class ModuleCompiler(SettingsManager, GenUtils):
self._fileDirName, self._fileBaseName = os.path.split(self._filePath)
self._fileBaseNameRoot, self._fileBaseNameExt = os.path.splitext(self._fileBaseName)
- if not isinstance(source, (str,unicode)):
- source = str(source)
+ if not isinstance(source, basestring):
+ source = unicode(source)
# by converting to string here we allow objects such as other Templates
# to be passed in