55
66import cloudevents .exceptions as cloud_exceptions
77from cloudevents .http .event import CloudEvent
8- from cloudevents .http .event_type import is_binary , is_structured
8+ from cloudevents .http .event_type import is_binary
99from cloudevents .http .mappings import _marshaller_by_format , _obj_by_version
1010from cloudevents .http .util import _json_or_string
1111from cloudevents .sdk import converters , marshaller , types
@@ -124,7 +124,7 @@ def _to_http(
124124
125125
126126def to_structured (
127- event : CloudEvent , data_marshaller : types .MarshallerType = None ,
127+ event : CloudEvent , data_marshaller : types .MarshallerType = None
128128) -> (dict , typing .Union [bytes , str ]):
129129 """
130130 Returns a tuple of HTTP headers/body dicts representing this cloudevent. If
@@ -142,7 +142,7 @@ def to_structured(
142142
143143
144144def to_binary (
145- event : CloudEvent , data_marshaller : types .MarshallerType = None ,
145+ event : CloudEvent , data_marshaller : types .MarshallerType = None
146146) -> (dict , typing .Union [bytes , str ]):
147147 """
148148 Returns a tuple of HTTP headers/body dicts representing this cloudevent
@@ -163,13 +163,13 @@ def to_binary(
163163
164164@deprecated (deprecated_in = "1.0.2" , details = "Use to_binary function instead" )
165165def to_binary_http (
166- event : CloudEvent , data_marshaller : types .MarshallerType = None ,
166+ event : CloudEvent , data_marshaller : types .MarshallerType = None
167167) -> (dict , typing .Union [bytes , str ]):
168168 return to_binary (event , data_marshaller )
169169
170170
171171@deprecated (deprecated_in = "1.0.2" , details = "Use to_structured function instead" )
172172def to_structured_http (
173- event : CloudEvent , data_marshaller : types .MarshallerType = None ,
173+ event : CloudEvent , data_marshaller : types .MarshallerType = None
174174) -> (dict , typing .Union [bytes , str ]):
175175 return to_structured (event , data_marshaller )
0 commit comments