def _StrConvert(value):



  if not isinstance(value, str):
    return value.encode('utf-8')
  return value
Converts value to str if it is not.
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/net/proto2/python/internal/well_known_types.py/_StrConvert