Remove unwanted None check for __repr__ in class

This commit is contained in:
章昕
2019-01-17 00:24:11 +08:00
parent 99f34c9f50
commit af7ad0a621
2 changed files with 1 additions and 3 deletions

View File

@@ -115,8 +115,6 @@ class Request(dict):
self.endpoint = None
def __repr__(self):
if self.method is None or not self.path:
return "<{0}>".format(self.__class__.__name__)
return "<{0}: {1} {2}>".format(
self.__class__.__name__, self.method, self.path
)