Conform to pep8

This commit is contained in:
Johnny Rocketfingers 2017-05-14 10:15:03 +02:00
parent b44c707e94
commit b1890f50b6

View File

@ -143,7 +143,8 @@ class Request(dict):
@property @property
def ip(self): def ip(self):
if not hasattr(self, '_ip'): if not hasattr(self, '_ip'):
self._ip = self.transport.get_extra_info('peername') or (None, None) self._ip = (self.transport.get_extra_info('peername') or
(None, None))
return self._ip return self._ip
@property @property