]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Removed explicit return from __init__ method
authorRajesh Tailor <rajesh.tailor@nttdata.com>
Thu, 4 Jun 2015 12:29:02 +0000 (05:29 -0700)
committerRajesh Tailor <rajesh.tailor@nttdata.com>
Thu, 4 Jun 2015 12:33:49 +0000 (05:33 -0700)
As per python documentation [1], removed explicit return keyword
from __init__ method.

[1] https://docs.python.org/2/reference/datamodel.html#object.__init__

Closes-Bug: 1461931
Change-Id: I654d7786e1971304789bbb376f8ced2b5646370e

cinder/tests/unit/api/fakes.py

index fd6aa0930bb2f49f4635c6e04bc734d98064556e..de8c9f371db0b7c6d1f886297d109defe46df52c 100644 (file)
@@ -98,7 +98,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(webob.Request):