Chromium Code Reviews| Index: tools/json_schema_compiler/preview.py |
| diff --git a/tools/json_schema_compiler/preview.py b/tools/json_schema_compiler/preview.py |
| index 050af9637efbe9ca7eb5d5d6c5819e23c5a4162e..e423598cc272469333e5412e698ad2e6c095e374 100755 |
| --- a/tools/json_schema_compiler/preview.py |
| +++ b/tools/json_schema_compiler/preview.py |
| @@ -201,7 +201,6 @@ updateEverything(); |
| namespace) |
| # Generate code |
| - cpp_namespace = 'generated_api_schemas' |
| if file_ext == '.h': |
| cpp_code = (h_generator.HGenerator(type_generator) |
| .Generate(namespace).Render()) |
| @@ -286,7 +285,7 @@ updateEverything(); |
| # Each file under path/ |
| for filename in sorted(os.listdir(path)): |
| full_path = os.path.join(path, filename) |
| - (file_root, file_ext) = os.path.splitext(full_path) |
| + file_ext = os.path.splitext(full_path)[1] |
|
not at google - send to devlin
2015/01/14 22:44:41
ditto
|
| if os.path.isdir(full_path) and not full_path.endswith('.xcodeproj'): |
| html.Append('<li><a href="/%s/">%s/</a>' % (full_path, filename)) |
| elif file_ext in ['.json', '.idl']: |