mirror of
https://github.com/sprockets/sprockets.mixins.avro-publisher.git
synced 2024-11-28 19:29:55 +00:00
Flake8: fixes after running flake8
This commit is contained in:
parent
a06f5ef614
commit
95f8f987ba
2 changed files with 14 additions and 13 deletions
|
@ -14,9 +14,10 @@ import io
|
|||
import json
|
||||
import logging
|
||||
|
||||
from sprockets.mixins import amqp, http
|
||||
import fastavro
|
||||
|
||||
from sprockets.mixins import amqp, http
|
||||
|
||||
__version__ = '3.0.0'
|
||||
|
||||
LOGGER = logging.getLogger(__name__)
|
||||
|
|
|
@ -1,29 +1,29 @@
|
|||
import json
|
||||
import io
|
||||
import os
|
||||
import sys
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import random
|
||||
import sys
|
||||
import uuid
|
||||
|
||||
from tornado import concurrent, locks, testing, web
|
||||
import fastavro
|
||||
from pika import spec
|
||||
from tornado import concurrent, locks, testing, web
|
||||
|
||||
from sprockets.mixins import amqp, avro_publisher
|
||||
|
||||
LOGGER = logging.getLogger(__name__)
|
||||
|
||||
MESSAGE_TYPE = "example.avro.Test"
|
||||
MESSAGE_TYPE = 'example.avro.Test'
|
||||
|
||||
AVRO_SCHEMA = {
|
||||
"namespace": "example.avro",
|
||||
"type": "record",
|
||||
"name": "User",
|
||||
"fields": [
|
||||
{"name": "name", "type": "string"},
|
||||
{"name": "favorite_number", "type": ["int", "null"]},
|
||||
{"name": "favorite_color", "type": ["string", "null"]}]}
|
||||
'namespace': 'example.avro',
|
||||
'type': 'record',
|
||||
'name': 'User',
|
||||
'fields': [
|
||||
{'name': 'name', 'type': 'string'},
|
||||
{'name': 'favorite_number', 'type': ['int', 'null']},
|
||||
{'name': 'favorite_color', 'type': ['string', 'null']}]}
|
||||
|
||||
|
||||
def deserialize(value):
|
||||
|
|
Loading…
Reference in a new issue