1.1 --- a/generator.py Fri Nov 18 16:47:07 2016 +0100
1.2 +++ b/generator.py Fri Nov 18 17:25:24 2016 +0100
1.3 @@ -369,8 +369,9 @@
1.4
1.5 # NOTE: This makes assumptions about the __builtins__ structure.
1.6
1.7 - typename = value.__class__.__name__
1.8 - ref = Reference("<instance>", "__builtins__.%s.%s" % (typename, typename))
1.9 + modname = value.__class__.__name__
1.10 + typename = modname == "str" and "string" or modname
1.11 + ref = Reference("<instance>", "__builtins__.%s.%s" % (modname, typename))
1.12
1.13 self.make_constant(f_decls, f_defs, ref, const_path, structure_name, value)
1.14