(self, value)
return base.BaseSpec.parse(value, syntax=self.syntax)
Converts any value to a base.Spec field.
Converts any value to a base.Spec field.
Converts any value to a base . Spec field .
def to_python(self, value):
        """Converts any value to a base.Spec field."""
        if value is None or value == '':
            return value
        if isinstance(value, base.BaseSpec):
            return value
        return base.BaseSpec.parse(value, syntax=self.syntax)
def to_python ( self , value ) : if value is None or value == '' : return value if isinstance ( value , base . BaseSpec ) : return value return base . BaseSpec . parse ( value , syntax = self . syntax )