Skip to content

Commit 6e4b0cb

Browse files
committed
Removed trailing whitespaces
1 parent e4c4086 commit 6e4b0cb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

oauth2_provider/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def is_expired(self):
159159
"""
160160
if not self.expires:
161161
return True
162-
162+
163163
return timezone.now() >= self.expires
164164

165165
def redirect_uri_allowed(self, uri):
@@ -203,7 +203,7 @@ def is_expired(self):
203203
"""
204204
if not self.expires:
205205
return True
206-
206+
207207
return timezone.now() >= self.expires
208208

209209
def allow_scopes(self, scopes):

oauth2_provider/tests/test_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class TestGrantModel(TestCase):
139139
def test_str(self):
140140
grant = Grant(code="test_code")
141141
self.assertEqual("%s" % grant, grant.code)
142-
142+
143143
def test_expires_can_be_none(self):
144144
grant = Grant(code="test_code")
145145
self.assertIsNone(grant.expires)
@@ -164,7 +164,7 @@ def test_user_can_be_none(self):
164164
)
165165
access_token = AccessToken.objects.create(token="test_token", application=app, expires=timezone.now())
166166
self.assertIsNone(access_token.user)
167-
167+
168168
def test_expires_can_be_none(self):
169169
access_token = AccessToken(token="test_token")
170170
self.assertIsNone(access_token.expires)

0 commit comments

Comments
 (0)