genxml/pack: Allow hex values in the XML

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
This commit is contained in:
Jason Ekstrand
2017-04-19 16:20:44 -07:00
parent 35ea0c07a1
commit b7a2af8e38
+2 -1
View File
@@ -3,6 +3,7 @@
from __future__ import (
absolute_import, division, print_function, unicode_literals
)
import ast
import xml.parsers.expat
import re
import sys
@@ -476,7 +477,7 @@ class Group(object):
class Value(object):
def __init__(self, attrs):
self.name = safe_name(attrs["name"])
self.value = int(attrs["value"])
self.value = ast.literal_eval(attrs["value"])
class Parser(object):
def __init__(self):