Fix and enable gating on F811

Fixes duplicate method definitions and enables gating on F811

Change-Id: Ic360e70d13da864b8b5c10fc5e731b3952b2d2e8
This commit is contained in:
Morgan Fainberg 2013-08-18 20:12:13 -07:00 committed by Gerrit Code Review
parent f719e109dd
commit d21f73ab28
3 changed files with 1 additions and 14 deletions

@ -61,9 +61,6 @@ class AccessInfo(dict):
self.service_catalog = service_catalog.ServiceCatalog.factory(
resource_dict=self, region_name=self.get('region_name'))
def has_service_catalog(self):
return 'serviceCatalog' in self
def will_expire_soon(self, stale_duration=None):
"""Determines if expiration is about to occur.

@ -589,15 +589,6 @@ class HTTPClient(object):
def serialize(self, entity):
return json.dumps(entity)
@property
def service_catalog(self):
"""Returns this client's service catalog."""
return self.auth_ref.service_catalog
def has_service_catalog(self):
"""Returns True if this client provides a service catalog."""
return self.auth_ref.has_service_catalog()
def request(self, url, method, body=None, **kwargs):
"""Send an http request with the specified characteristics.

@ -27,9 +27,8 @@ commands = python setup.py testr --coverage --testr-args='{posargs}'
downloadcache = ~/cache/pip
[flake8]
# F811: redefinition of unused 'client' from line 81
# F821: undefined name
# H304: no relative imports
ignore = F811,F821,H304
ignore = F821,H304
show-source = True
exclude = .venv,.tox,dist,doc,*egg,build