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

Unified Diff: tools/json_schema_compiler/model.py

Issue 10829348: Extensions Docs Server: Large performance increase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: server is fast Created 8 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 76b27b20556e2009feb65bf822dc726391bd378b..4bf332d98be3112ab039802e4d46283c4f234f3b 100644
--- a/tools/json_schema_compiler/model.py
+++ b/tools/json_schema_compiler/model.py
@@ -299,17 +299,17 @@ class Property(object):
unix_name = property(GetUnixName, SetUnixName)
+class _Info(object):
+ def __init__(self, is_fundamental, name):
+ self.is_fundamental = is_fundamental
+ self.name = name
+
+ def __repr__(self):
+ return self.name
not at google - send to devlin 2012/08/20 05:27:10 Add a note that this is so it can be pickled. Als
cduvall 2012/08/20 21:28:09 Done.
+
class PropertyType(object):
"""Enum of different types of properties/parameters.
"""
- class _Info(object):
- def __init__(self, is_fundamental, name):
- self.is_fundamental = is_fundamental
- self.name = name
-
- def __repr__(self):
- return self.name
-
INTEGER = _Info(True, "INTEGER")
INT64 = _Info(True, "INT64")
DOUBLE = _Info(True, "DOUBLE")

Powered by Google App Engine
This is Rietveld 408576698