| Index: tools/json_schema_compiler/schema_util.py
|
| diff --git a/tools/json_schema_compiler/schema_util.py b/tools/json_schema_compiler/schema_util.py
|
| index 289d24df7c43770a270895657996629d5d16c2e4..177e77f9b1ba5ec847f559df1546daa10a17465f 100644
|
| --- a/tools/json_schema_compiler/schema_util.py
|
| +++ b/tools/json_schema_compiler/schema_util.py
|
| @@ -4,6 +4,10 @@
|
| """Utilies for the processing of schema python structures.
|
| """
|
|
|
| +def GetNamespace(ref_type):
|
| + if '.' in ref_type:
|
| + return ref_type[:ref_type.rindex('.')]
|
| +
|
| def StripSchemaNamespace(s):
|
| last_dot = s.rfind('.')
|
| if not last_dot == -1:
|
|
|