From 28bdac46f667c87bf4017423b526ac979f0330f7 Mon Sep 17 00:00:00 2001 From: lizheao Date: Thu, 27 Apr 2017 18:03:13 +0800 Subject: [PATCH] recovery the flask8 error --- sanic/blueprints.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sanic/blueprints.py b/sanic/blueprints.py index 79a41ab1..37c41a78 100644 --- a/sanic/blueprints.py +++ b/sanic/blueprints.py @@ -99,7 +99,8 @@ class Blueprint: def decorator(handler): if isinstance(handler, MethodType): raise SanicTypeException("You can`t add a instance " - "method as a blueprint router handler") + "method as a blueprint " + "router handler") route = FutureRoute(handler, uri, methods, host, strict_slashes) self.routes.append(route) return handler @@ -129,7 +130,8 @@ class Blueprint: methods = handler.handlers.keys() if isinstance(handler, MethodType): raise SanicTypeException("You can`t add a " - "instance method as a blueprint router handler") + "instance method as a blueprint " + "router handler") self.route(uri=uri, methods=methods, host=host, strict_slashes=strict_slashes)(handler)