summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi Miura <miurahr@nttdata.co.jp>2015-08-03 12:23:04 +0900
committerHiroshi Miura <miurahr@nttdata.co.jp>2015-08-04 11:34:51 +0900
commita056f1b3742812a2c861a0d01678dfed3b0087e4 (patch)
tree36376c0756eb4aa54b4bd1ae4503485300b77d64
parent161e08df1054dc8d47db494de3645a47fcaa1f3a (diff)
downloadpython-swiftclient-a056f1b3742812a2c861a0d01678dfed3b0087e4.tar.gz
fix old style class definition(H238)
Change-Id: Ib5be06fa544f5eb3061c6a3077a3b9986382ecfe Signed-off-by: Hiroshi Miura <miurahr@nttdata.co.jp>
-rw-r--r--tests/unit/utils.py2
-rw-r--r--tox.ini3
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/utils.py b/tests/unit/utils.py
index 4f7c8ec..ac9aefd 100644
--- a/tests/unit/utils.py
+++ b/tests/unit/utils.py
@@ -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
diff --git a/tox.ini b/tox.ini
index e5b207c..1008f5d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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