fix old style class definition(H238)

Change-Id: Ib5be06fa544f5eb3061c6a3077a3b9986382ecfe
Signed-off-by: Hiroshi Miura <miurahr@nttdata.co.jp>
This commit is contained in:
Hiroshi Miura 2015-08-03 12:23:04 +09:00
parent 161e08df10
commit a056f1b374
2 changed files with 3 additions and 2 deletions
tests/unit
tox.ini

@ -503,7 +503,7 @@ class FakeKeystone(object):
self.endpoint = endpoint
self.token = token
class _Client():
class _Client(object):
def __init__(self, endpoint, token, **kwargs):
self.auth_token = token
self.endpoint = endpoint

@ -45,9 +45,10 @@ commands=
# H102 -> apache2 license exists
# H103 -> license is apache
# H201 -> no bare excepts
# H238 -> old style classes are deprecated and not available in python3
# H501 -> don't use locals() for str formatting
# H903 -> \n not \r\n
ignore = H
select = H102, H103, H201, H501, H903
select = H102, H103, H201, H238, H501, H903
show-source = True
exclude = .venv,.tox,dist,doc,*egg