@@ -692,7 +692,7 @@ def splunk_version(self):
692692 @property
693693 def splunk_instance (self ):
694694 if self ._instance_type is None :
695- splunk_info = self .info ;
695+ splunk_info = self .info
696696 if hasattr (splunk_info , 'instance_type' ) :
697697 self ._instance_type = splunk_info ['instance_type' ]
698698 else :
@@ -1823,7 +1823,7 @@ def __getitem__(self, key):
18231823 # This screws up the default implementation of __getitem__ from Collection, which thinks
18241824 # that multiple entities means a name collision, so we have to override it here.
18251825 try :
1826- response = self .get (key )
1826+ self .get (key )
18271827 return ConfigurationFile (self .service , PATH_CONF % key , state = {'title' : key })
18281828 except HTTPError as he :
18291829 if he .status == 404 : # No entity matching key
@@ -1835,7 +1835,7 @@ def __contains__(self, key):
18351835 # configs/conf-{name} never returns a 404. We have to post to properties/{name}
18361836 # in order to find out if a configuration exists.
18371837 try :
1838- response = self .get (key )
1838+ self .get (key )
18391839 return True
18401840 except HTTPError as he :
18411841 if he .status == 404 : # No entity matching key
@@ -3617,7 +3617,7 @@ class Roles(Collection):
36173617 Retrieve this collection using :meth:`Service.roles`."""
36183618
36193619 def __init__ (self , service ):
3620- return Collection .__init__ (self , service , PATH_ROLES , item = Role )
3620+ Collection .__init__ (self , service , PATH_ROLES , item = Role )
36213621
36223622 def __getitem__ (self , key ):
36233623 return Collection .__getitem__ (self , key .lower ())
0 commit comments