From 754b94bba6df6e7aafd5f1ffb8432a40cb815649 Mon Sep 17 00:00:00 2001 From: dongwenjuan Date: Thu, 21 Dec 2017 16:11:31 +0800 Subject: support pep8 check Change-Id: I3c4358694c57d27a207ae60712c44f717c8895f7 Signed-off-by: dongwenjuan --- doctor_tests/consumer/base.py | 2 +- doctor_tests/consumer/sample.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'doctor_tests/consumer') diff --git a/doctor_tests/consumer/base.py b/doctor_tests/consumer/base.py index 35170748..b6c4b34e 100644 --- a/doctor_tests/consumer/base.py +++ b/doctor_tests/consumer/base.py @@ -23,4 +23,4 @@ class BaseConsumer(object): @abc.abstractmethod def stop(self): - pass \ No newline at end of file + pass diff --git a/doctor_tests/consumer/sample.py b/doctor_tests/consumer/sample.py index d76a764b..eaf5fabd 100644 --- a/doctor_tests/consumer/sample.py +++ b/doctor_tests/consumer/sample.py @@ -55,8 +55,8 @@ class ConsumerApp(Thread): @app.route('/failure', methods=['POST']) def event_posted(): self.log.info('doctor consumer notified at %s' % time.time()) - self.log.info('sample consumer received data = %s' % request.data) data = json.loads(request.data.decode('utf8')) + self.log.info('sample consumer received data = %s' % data) return 'OK' @app.route('/shutdown', methods=['POST']) -- cgit 1.2.3-korg