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 4570c7aca1
commit 44ce901008
2 changed files with 1 additions and 5 deletions

View File

@ -61,9 +61,6 @@ class AccessInfo(dict):
self.service_catalog = service_catalog.ServiceCatalog.factory( self.service_catalog = service_catalog.ServiceCatalog.factory(
resource_dict=self, region_name=self.get('region_name')) 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): def will_expire_soon(self, stale_duration=None):
"""Determines if expiration is about to occur. """Determines if expiration is about to occur.

View File

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