Changed order of value/enum
diff --git a/tools/pylibopenflow/pylib/cpythonize.py b/tools/pylibopenflow/pylib/cpythonize.py
index 790e24d..23f2e2d 100644
--- a/tools/pylibopenflow/pylib/cpythonize.py
+++ b/tools/pylibopenflow/pylib/cpythonize.py
@@ -166,12 +166,12 @@
prev_v = v
first = 0
else:
- code.append(self.tab + "'%s'%s: %s," %
- (prev_e, _space_to(30, prev_e), prev_v))
+ code.append(self.tab + "%s%s: '%s'," %
+ (prev_v, _space_to(32, str(prev_v)), prev_e))
prev_e = e
prev_v = v
- code.append(self.tab + "'%s'%s: %s" %
- (prev_e, _space_to(30, prev_e), prev_v))
+ code.append(self.tab + "%s%s: '%s'" %
+ (prev_v, _space_to(32, str(prev_v)), prev_e))
code.append("}")
return code