test(pep8): Fix errors from new checks

This commit is contained in:
Kurt Griffiths
2016-01-14 11:52:49 -06:00
parent 2f5f336c5c
commit 37816f90fd
3 changed files with 8 additions and 5 deletions

View File

@@ -351,8 +351,8 @@ class Request(object):
@property
def client_accepts_msgpack(self):
return (self.client_accepts('application/x-msgpack')
or self.client_accepts('application/msgpack'))
return (self.client_accepts('application/x-msgpack') or
self.client_accepts('application/msgpack'))
@property
def client_accepts_xml(self):

View File

@@ -20,8 +20,6 @@ from six import string_types as STRING_TYPES
# but a dict-like structure. This fixes that issue.
# See issue https://github.com/falconry/falcon/issues/556
from six.moves import http_cookies
SimpleCookie = http_cookies.SimpleCookie
CookieError = http_cookies.CookieError
from falcon.response_helpers import header_property, format_range
from falcon.response_helpers import is_ascii_encodable
@@ -29,6 +27,9 @@ from falcon.util import dt_to_http, TimezoneGMT
from falcon.util.uri import encode as uri_encode
from falcon.util.uri import encode_value as uri_encode_value
SimpleCookie = http_cookies.SimpleCookie
CookieError = http_cookies.CookieError
GMT_TIMEZONE = TimezoneGMT()

View File

@@ -2,8 +2,10 @@ import sys
import time
from wsgiref.simple_server import make_server
if 'java' not in sys.platform:
try:
import multiprocessing
except ImportError:
pass # Jython
import requests
from testtools.matchers import Equals, MatchesRegex