Code Review
/
functest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix many pylint warnings
[functest.git]
/
functest
/
api
/
base.py
diff --git
a/functest/api/base.py
b/functest/api/base.py
index
ffc5678
..
b104829
100644
(file)
--- a/
functest/api/base.py
+++ b/
functest/api/base.py
@@
-26,9
+26,6
@@
LOGGER = logging.getLogger(__name__)
class ApiResource(Resource):
""" API Resource class"""
class ApiResource(Resource):
""" API Resource class"""
- def __init__(self):
- super(ApiResource, self).__init__()
-
def _post_args(self): # pylint: disable=no-self-use
# pylint: disable=maybe-no-member
""" Return action and args after parsing request """
def _post_args(self): # pylint: disable=no-self-use
# pylint: disable=maybe-no-member
""" Return action and args after parsing request """
@@
-45,6
+42,11
@@
class ApiResource(Resource):
return action, args
return action, args
+ def _get_args(self): # pylint: disable=no-self-use
+ """ Convert the unicode to string for request.args """
+ args = api_utils.change_to_str_in_dict(request.args)
+ return args
+
def _dispatch_post(self):
""" Dispatch request """
action, args = self._post_args()
def _dispatch_post(self):
""" Dispatch request """
action, args = self._post_args()