From b1890f50b6f7537dfb1d10b6d797bea06b94313a Mon Sep 17 00:00:00 2001 From: Johnny Rocketfingers Date: Sun, 14 May 2017 10:15:03 +0200 Subject: [PATCH] Conform to pep8 --- sanic/request.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sanic/request.py b/sanic/request.py index 45a38c41..69307222 100644 --- a/sanic/request.py +++ b/sanic/request.py @@ -143,7 +143,8 @@ class Request(dict): @property def ip(self): 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 @property