Skip to content

Commit

Permalink
Merge pull request #1 from ManjunathToragal/python3_support
Browse files Browse the repository at this point in the history
python3 error fixed dbuswpasupplicant.py line 385
  • Loading branch information
ManjunathToragal authored Apr 17, 2020
2 parents 1324a5d + 0c38a2e commit 74e6fd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wificontrol/utils/dbuswpasupplicant.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@ def network_properties(self, network_path):
def get_network_SSID(self, network_path):
ssid = self.network_properties(network_path)['ssid']
try:
return str(ssid.decode('hex')).strip("\"")
#return str(ssid.decode('hex')).strip("\"")
return str(ssid.encode('utf-8')).strip("'b\"\'")
except TypeError:
return str(ssid).strip("\"")

Expand Down

0 comments on commit 74e6fd5

Please sign in to comment.