Skip to content

Improve py_gnmicli.py to support python3#8

Open
liuh-80 wants to merge 1 commit intolguohan:masterfrom
liuh-80:dev/liuh/support_python3
Open

Improve py_gnmicli.py to support python3#8
liuh-80 wants to merge 1 commit intolguohan:masterfrom
liuh-80:dev/liuh/support_python3

Conversation

@liuh-80
Copy link

@liuh-80 liuh-80 commented Mar 7, 2025

python2 been removed from SONiC ptf docker image, py_gnmicli.py report following warning error message with python3:

/root/gnxi/gnmi_cli_py/py_gnmicli.py:508: SyntaxWarning: "is not" with a literal. Did you mean "!="?
E if filter_event_regex is not "":
E /root/gnxi/gnmi_cli_py/py_gnmicli.py:510: SyntaxWarning: "is not" with a literal. Did you mean "!="?
E if len(match) is not 0:

However, the code has issue only exists in this repo, upstream project doesn't have counterpart:
https://github.com/google/gnxi/blob/ef18504847b0d22db417fc1ead87c8e38337f1af/gnmi_cli_py/py_gnmicli.py#L412

@mssonicbld
Copy link

/azp run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants