Skip to content

Commit

Permalink
Merge pull request #375 from liho00/liho00-patch-1
Browse files Browse the repository at this point in the history
Update models.py
  • Loading branch information
sibiryakov authored Jul 5, 2019
2 parents 5762a26 + 13efd27 commit 02326d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontera/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def body(self):

def __str__(self):
return "<%s at 0x%0x %s meta=%s body=%s... cookies=%s, headers=%s>" % (type(self).__name__, id(self), self.url,
str(self.meta), str(self.body[:20]),
str(self.meta), str(self.body[:20]) if self.body is not None else None,
str(self.cookies), str(self.headers))

def __hash__(self):
Expand Down Expand Up @@ -163,6 +163,6 @@ def __str__(self):
return "<%s at 0x%0x %s %s meta=%s body=%s... headers=%s>" % (type(self).__name__,
id(self), self.status_code,
self.url, str(self.meta),
str(self.body[:20]), str(self.headers))
str(self.body[:20]) if self.body is not None else None, str(self.headers))

__repr__ = __str__

0 comments on commit 02326d2

Please sign in to comment.