Flake8: fixes after running flake8

This commit is contained in:
sprockets 2020-03-17 15:15:13 +05:30
parent a06f5ef614
commit 95f8f987ba
2 changed files with 14 additions and 13 deletions

View file

@ -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__)

View file

@ -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):