Skip to content

Commit 2bb8159

Browse files
authored
Merge pull request #21 from hackebrot/simplify-result-repr-code
Simplify code for Result representation
2 parents 1245112 + c9784ee commit 2bb8159

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pytest_cookies.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ def project(self):
2626
return None
2727

2828
def __repr__(self):
29-
return '<Result {}>'.format(
30-
self.exception and repr(self.exception) or self.project
31-
)
29+
if self.exception:
30+
return '<Result {!r}>'.format(self.exception)
31+
return '<Result {}>'.format(self.project)
3232

3333

3434
class Cookies(object):

0 commit comments

Comments
 (0)