]> git.cworth.org Git - apitrace/blobdiff - glstate.py
Cleanup Literal class.
[apitrace] / glstate.py
index acd43d07ff32d37f4efaff3dc6c17cc7f6c6a3ea..79cf2de12dc0bab07a7466833e00ff507f4ed008 100644 (file)
@@ -189,9 +189,9 @@ class JsonWriter(Visitor):
     It expects a previously declared JSONWriter instance named "json".'''
 
     def visit_literal(self, literal, instance):
-        if literal.format == 'Bool':
+        if literal.kind == 'Bool':
             print '    json.writeBool(%s);' % instance
-        elif literal.format in ('SInt', 'Uint', 'Float', 'Double'):
+        elif literal.kind in ('SInt', 'Uint', 'Float', 'Double'):
             print '    json.writeNumber(%s);' % instance
         else:
             raise NotImplementedError