Skip to content

Commit

Permalink
v0.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
howie6879 committed Mar 13, 2019
1 parent affcb0e commit 205bae2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ruia/__init__.py
Expand Up @@ -7,4 +7,4 @@
from .response import Response
from .spider import Spider

__version__ = '0.5.6'
__version__ = '0.5.7'
2 changes: 1 addition & 1 deletion ruia/item.py
Expand Up @@ -109,5 +109,5 @@ async def get_items(cls,
else:
raise ValueError("target_item is expected")

def __str__(self):
def __repr__(self):
return f"<Item {self.results}>"
2 changes: 1 addition & 1 deletion ruia/request.py
Expand Up @@ -183,5 +183,5 @@ async def _retry(self, error_msg):

return response

def __str__(self):
def __repr__(self):
return f"<{self.method} {self.url}>"
2 changes: 1 addition & 1 deletion ruia/response.py
Expand Up @@ -140,5 +140,5 @@ async def text(self,
"""Read response payload and decode."""
return await self._aws_text(encoding=encoding, errors=errors)

def __str__(self):
def __repr__(self):
return f'<Response url[{self._method}]: {self._url} status:{self._status}>'

0 comments on commit 205bae2

Please sign in to comment.