Index: tools/json_schema_compiler/h_generator.py |
diff --git a/tools/json_schema_compiler/h_generator.py b/tools/json_schema_compiler/h_generator.py |
index 77356b2091fbada48c5cb683322c0047e085f775..0a2dc89003cb3d23f8f377f13bb2654a2d881e5c 100644 |
--- a/tools/json_schema_compiler/h_generator.py |
+++ b/tools/json_schema_compiler/h_generator.py |
@@ -3,7 +3,7 @@ |
# found in the LICENSE file. |
from code import Code |
-from model import PropertyType, Type |
+from model import PropertyType |
import cpp_util |
import schema_util |
@@ -17,6 +17,7 @@ class HGenerator(object): |
self._type_generator, |
self._cpp_namespace).Generate() |
+ |
class _Generator(object): |
"""A .h generator for a namespace. |
""" |
@@ -303,9 +304,8 @@ class _Generator(object): |
c = Code() |
# TODO(kalman): Use function.unix_name not Classname here. |
function_namespace = cpp_util.Classname(function.name) |
- """Windows has a #define for SendMessage, so to avoid any issues, we need |
- to not use the name. |
- """ |
+ # Windows has a #define for SendMessage, so to avoid any issues, we need |
+ # to not use the name. |
if function_namespace == 'SendMessage': |
function_namespace = 'PassMessage' |
(c.Append('namespace %s {' % function_namespace) |