test(pep8): Fix errors from new checks
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user