Commit eed7aa5c authored by olivier R-D's avatar olivier R-D

do not use enum for objectis, doe not help and impact performance

parent 95c1a8b4
......@@ -2,7 +2,7 @@
from enum import IntEnum
class ObjectIds(IntEnum):
class ObjectIds(object):
Boolean = 1
SByte = 2
Byte = 3
......
......@@ -5,7 +5,7 @@ if __name__ == "__main__":
outputfile.write("\n")
outputfile.write("from enum import IntEnum\n")
outputfile.write("\n")
outputfile.write("class ObjectIds(IntEnum):\n")
outputfile.write("class ObjectIds(object):\n")
for line in inputfile:
name, nb, datatype = line.split(",")
outputfile.write(" {} = {}\n".format(name, nb))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment