Skip to content

Commit

Permalink
Python 3.8 warning is fixed.
Browse files Browse the repository at this point in the history
	modified:   persepolis/scripts/check_proxy.py
  • Loading branch information
alireza-amirsamimi committed Dec 30, 2019
1 parent 5ca96a1 commit c67635e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions persepolis/scripts/check_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def getProxy():

proxy = {}
if os_type in OS.UNIX_LIKE:
if desktop is None:
if desktop == None:
desktop_env_type = 'Desktop Environment not detected!'
else:
desktop_env_type = 'Desktop environment: ' + str(desktop)
Expand Down Expand Up @@ -154,7 +154,7 @@ def getProxy():
if len(words) == 3 and words[0] in validKeys:
mac_tmp_proxies_list[words[0]] = words[2]

if mac_tmp_proxies_list['SOCKSEnable'] is '1':
if mac_tmp_proxies_list['SOCKSEnable'] == '1':
socks_proxy = True
else:
socks_proxy = False
Expand Down

0 comments on commit c67635e

Please sign in to comment.