summaryrefslogtreecommitdiffstats
path: root/tools/json_schema_compiler
diff options
context:
space:
mode:
authorteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-02 23:00:59 +0000
committerteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-02 23:00:59 +0000
commitad10f33949afb6139ff3896325a25e03d4ec819e (patch)
treeb98e73ee78c628e4273bb4f6c3cdcdeaa8ba8fac /tools/json_schema_compiler
parent388c127a2e546a8c1e899bf1a48d068898f69676 (diff)
downloadchromium_src-ad10f33949afb6139ff3896325a25e03d4ec819e.zip
chromium_src-ad10f33949afb6139ff3896325a25e03d4ec819e.tar.gz
chromium_src-ad10f33949afb6139ff3896325a25e03d4ec819e.tar.bz2
Pepper: Clean up IDLNode internals.
This change simplifies some functions, removes some dead code and fixes up pylint style violations. BUG= Review URL: https://codereview.chromium.org/98803004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238216 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/json_schema_compiler')
-rw-r--r--tools/json_schema_compiler/idl_schema.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/json_schema_compiler/idl_schema.py b/tools/json_schema_compiler/idl_schema.py
index b056603..b516d39 100644
--- a/tools/json_schema_compiler/idl_schema.py
+++ b/tools/json_schema_compiler/idl_schema.py
@@ -223,7 +223,7 @@ class Typeref(object):
properties = self.additional_properties
result = properties
- if self.parent.GetProperty('OPTIONAL', False):
+ if self.parent.GetProperty('OPTIONAL'):
properties['optional'] = True
# The IDL parser denotes array types by adding a child 'Array' node onto