HomeSort by relevance Sort by last modified time
    Searched refs:py_value (Results 1 - 2 of 2) sorted by null

  /external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/base/py/
extra_types.py 105 def _PythonValueToJsonValue(py_value):
107 if py_value is None:
109 if isinstance(py_value, bool):
110 return JsonValue(boolean_value=py_value)
111 if isinstance(py_value, six.string_types):
112 return JsonValue(string_value=py_value)
113 if isinstance(py_value, numbers.Number):
114 if isinstance(py_value, six.integer_types):
115 if _MININT64 < py_value < _MAXINT64:
116 return JsonValue(integer_value=py_value)
    [all...]
extra_types_test.py 27 def assertTranslations(self, py_value, json_proto):
29 py_value, extra_types._JsonProtoToPythonValue(json_proto))
31 json_proto, extra_types._PythonValueToJsonProto(py_value))

Completed in 33 milliseconds