Cannot return a value from __init__

Updated __init__ method of FakeRequestContext class, because
__init__ method of classes should not return any value.

TrivialFix
Change-Id: I43c3c5e052138fc734ed1cb89ccc0a1d9ac4d60a
This commit is contained in:
Ankit Agrawal 2016-01-10 22:29:20 -08:00
parent 5a4a029e44
commit bf46f04c07
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class FakeToken(object):
class FakeRequestContext(context.RequestContext):
def __init__(self, *args, **kwargs):
kwargs['auth_token'] = kwargs.get('auth_token', 'fake_auth_token')
return super(FakeRequestContext, self).__init__(*args, **kwargs)
super(FakeRequestContext, self).__init__(*args, **kwargs)
class HTTPRequest(os_wsgi.Request):