From d193a1eb709d7dc562ac4c5ed960391b4dac2310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kyle=20Bl=C3=B6m?= Date: Mon, 30 Jan 2017 17:04:51 -0800 Subject: [PATCH] Added the tests, code formatting changes, and the Range Request feature. --- sanic/exceptions.py | 78 +++++-------------------- sanic/handlers.py | 128 +++++++++++++++++++++++++++++++++++++++++ sanic/response.py | 59 ++++++++++--------- sanic/sanic.py | 38 ++++++------ sanic/static.py | 51 ++++++++++++---- tests/test_requests.py | 16 ++++-- tests/test_static.py | 91 +++++++++++++++++++++++++++++ 7 files changed, 335 insertions(+), 126 deletions(-) create mode 100644 sanic/handlers.py diff --git a/sanic/exceptions.py b/sanic/exceptions.py index d986cd08..370882be 100644 --- a/sanic/exceptions.py +++ b/sanic/exceptions.py @@ -1,8 +1,3 @@ -from .response import text, html -from .log import log -from traceback import format_exc, extract_tb -import sys - TRACEBACK_STYLE = '''