diff options
author | cduvall@chromium.org <cduvall@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-31 01:55:51 +0000 |
---|---|---|
committer | cduvall@chromium.org <cduvall@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-31 01:55:51 +0000 |
commit | dc5f2fecf3e3e9d2426baabacc81310d73d49ac7 (patch) | |
tree | fa45daed9c5be794e0a09d321029c66022bd93f8 /tools | |
parent | b465c342358ceff9b92a2a1aaed3207d53d403ca (diff) | |
download | chromium_src-dc5f2fecf3e3e9d2426baabacc81310d73d49ac7.zip chromium_src-dc5f2fecf3e3e9d2426baabacc81310d73d49ac7.tar.gz chromium_src-dc5f2fecf3e3e9d2426baabacc81310d73d49ac7.tar.bz2 |
Extensions Docs Server: Fix handlebar_dict_generator.py
This is my best guess as to what's going wrong. Python thinks the objects aren't
equal, so check the names instead.
Review URL: https://chromiumcodereview.appspot.com/10910024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154346 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rw-r--r-- | tools/json_schema_compiler/model.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py index 753274f..29c54a0 100644 --- a/tools/json_schema_compiler/model.py +++ b/tools/json_schema_compiler/model.py @@ -321,6 +321,9 @@ class _PropertyTypeInfo(object): def __repr__(self): return self.name + def __eq__(self, other): + return isinstance(other, _PropertyTypeInfo) and self.name == other.name + class PropertyType(object): """Enum of different types of properties/parameters. """ |