Skip to content

Commit

Permalink
wrap long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Kriechi committed Aug 24, 2016
1 parent 72811e2 commit ec370fb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
16 changes: 14 additions & 2 deletions netlib/http/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,20 @@


class RequestData(message.MessageData):
def __init__(self, first_line_format, method, scheme, host, port, path, http_version, headers=(), content=None,
timestamp_start=None, timestamp_end=None):
def __init__(
self,
first_line_format,
method,
scheme,
host,
port,
path,
http_version,
headers=(),
content=None,
timestamp_start=None,
timestamp_end=None
):
if isinstance(method, six.text_type):
method = method.encode("ascii", "strict")
if isinstance(scheme, six.text_type):
Expand Down
12 changes: 10 additions & 2 deletions netlib/http/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,16 @@


class ResponseData(message.MessageData):
def __init__(self, http_version, status_code, reason=None, headers=(), content=None,
timestamp_start=None, timestamp_end=None):
def __init__(
self,
http_version,
status_code,
reason=None,
headers=(),
content=None,
timestamp_start=None,
timestamp_end=None
):
if isinstance(http_version, six.text_type):
http_version = http_version.encode("ascii", "strict")
if isinstance(reason, six.text_type):
Expand Down

0 comments on commit ec370fb

Please sign in to comment.