Skip to content

Commit

Permalink
Providing a minor change to where the from_http and to_binary methods…
Browse files Browse the repository at this point in the history
…/functions come from.

Without this you will see messages like the following:

```
deprecation.DeprecatedWarning: to_binary is deprecated as of 1.6.0. Use cloudevents.conversion.to_binary function instead
caught to_binary is deprecated as of 1.6.0. Use cloudevents.conversion.to_binary function instead
Function raised to_binary is deprecated as of 1.6.0. Use cloudevents.conversion.to_binary function instead
```
  • Loading branch information
sferich888 committed Feb 14, 2024
1 parent 86b84d8 commit 1805c22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parliament/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
import logging

from flask import Flask, request
from cloudevents.http import CloudEvent, from_http, to_binary
from cloudevents.http import CloudEvent
from cloudevents.conversion import from_http, to_binary
from .invocation import Context


Expand Down

0 comments on commit 1805c22

Please sign in to comment.