fixed type mapper and added tests (#20963)

This commit is contained in:
Stephane Maarek 2017-02-03 01:46:17 +11:00 committed by Ryan Brown
parent 8d5f4dda06
commit c33812450e
2 changed files with 13 additions and 1 deletions

View file

@ -618,5 +618,5 @@ def map_complex_type(complex_type, type_map):
complex_type[i],
type_map))
elif type_map:
return vars(globals()['__builtins__'])[type_map](complex_type)
return globals()['__builtins__'][type_map](complex_type)
return new_type