Skip to content

Commit

Permalink
[platform][barefoot] Use urllib.parse.quote (#7010)
Browse files Browse the repository at this point in the history
Fix Python 2 -> Python 3 migration issue

Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>
  • Loading branch information
vboykox authored Mar 12, 2021
1 parent b60d1fc commit 1785efa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import sys
import codecs
import urllib
from urllib.parse import quote

from sonic_platform.platform_thrift_client import thrift_try

def platform_sensors_get(args):
options = ""
if len(args)!=0:
options = urllib.quote(" ".join(args))
options = quote(" ".join(args))
def get_data(client):
return client.pltfm_mgr.pltfm_mgr_sensor_info_get(options)
raw_out = thrift_try(get_data)
Expand Down

0 comments on commit 1785efa

Please sign in to comment.