Use new-style classes which inherit from object in TestAPI 15/29415/1
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Mon, 27 Feb 2017 06:44:22 +0000 (14:44 +0800)
committerSerenaFeng <feng.xiaowei@zte.com.cn>
Mon, 27 Feb 2017 06:44:22 +0000 (14:44 +0800)
JIRA: FUNCTEST-707

Change-Id: I90a3d6ebfdf798eefccb8e5a0deebb661329d903
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
utils/test/testapi/opnfv_testapi/common/config.py

index 45e134f..105d4fa 100644 (file)
@@ -23,7 +23,7 @@ class ParseError(Exception):
         return 'error parsing config file : %s' % self.msg
 
 
-class APIConfig:
+class APIConfig(object):
     """
     The purpose of this class is to load values correctly from the config file.
     Each key is declared as an attribute in __init__() and linked in parse()