Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Trending: Fix vpp-ref
[csit.git]
/
resources
/
tools
/
papi
/
vpp_papi_provider.py
diff --git
a/resources/tools/papi/vpp_papi_provider.py
b/resources/tools/papi/vpp_papi_provider.py
old mode 100644
(file)
new mode 100755
(executable)
index
e5e030c
..
73f9fe6
--- a/
resources/tools/papi/vpp_papi_provider.py
+++ b/
resources/tools/papi/vpp_papi_provider.py
@@
-1,4
+1,4
@@
-#!/usr/bin/env python
+#!/usr/bin/env python
2
# Copyright (c) 2019 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# Copyright (c) 2019 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
@@
-185,7
+185,7
@@
def main():
api_args_unicode = data['api_args']
api_reply = dict(api_name=api_name)
api_args = dict()
api_args_unicode = data['api_args']
api_reply = dict(api_name=api_name)
api_args = dict()
- for a_k, a_v in api_args_unicode.ite
rite
ms():
+ for a_k, a_v in api_args_unicode.items():
value = binascii.unhexlify(a_v) if isinstance(a_v, unicode) else a_v
api_args[str(a_k)] = value
try:
value = binascii.unhexlify(a_v) if isinstance(a_v, unicode) else a_v
api_args[str(a_k)] = value
try: