Skip to content

Commit

Permalink
Get rid of deprecated logging.warn()
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Jul 2, 2014
1 parent 122e0e5 commit 771e7db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aiohttp/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def __call__(self, out, buf):
if self.readall and getattr(self.message, 'code', 0) != 204:
yield from self.parse_eof_payload(out, buf)
elif getattr(self.message, 'method', None) in ('PUT', 'POST'):
logging.warn( # pragma: no cover
logging.warning( # pragma: no cover
'Content-Length or Transfer-Encoding header is required')

out.feed_eof()
Expand Down
2 changes: 1 addition & 1 deletion aiohttp/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def _response(self, response, body=None,
if message.is_multipart():
for msg in message.get_payload():
if msg.is_multipart():
logging.warn('multipart msg is not expected')
logging.warning('multipart msg is not expected')
else:
key, params = cgi.parse_header(
msg.get('content-disposition', ''))
Expand Down

0 comments on commit 771e7db

Please sign in to comment.