Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1263)

Unified Diff: tools/json_schema_compiler/model.py

Issue 511943003: Generate externs automatically from json/idl files: minor changes. Base URL: https://chromium.googlesource.com/chromium/src.git@true_master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/json_schema_compiler/model.py
diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py
index ed8a2ec404edef066279720ad422c3ee7a6c4a43..f6a9ce5c53f9f844456e7345b442dfad73c76aba 100644
--- a/tools/json_schema_compiler/model.py
+++ b/tools/json_schema_compiler/model.py
@@ -446,6 +446,8 @@ class _PropertyTypeInfo(_Enum):
_Enum.__init__(self, name)
self.is_fundamental = is_fundamental
+ def __repr__(self):
+ return self.name
class PropertyType(object):
"""Enum of different types of properties/parameters.

Powered by Google App Engine
This is Rietveld 408576698