changed is to ==

this python3 requirement to use == in place of 'is', otherwise it shows warning, it does affect the working but its anonying to warning everytime, so i fixed it.
This commit is contained in:
duckie
2019-12-23 16:40:11 +05:30
committed by GitHub
parent f76c34d5e0
commit 6e87c911dc
+7 -7
View File
@@ -42,7 +42,7 @@ from utils import *
import config
from nasm import *
if sys.version_info.major is 3:
if sys.version_info.major == 3:
from urllib.request import urlopen
from urllib.parse import urlencode
pyversion = 3
@@ -5789,9 +5789,9 @@ class PEDACmd(object):
while True:
for os in oslist:
msg('%s %s'%(yellow('[+]'),green(os)))
if pyversion is 2:
if pyversion == 2:
os = input('%s'%blue('os:'))
if pyversion is 3:
if pyversion == 3:
os = input('%s'%blue('os:'))
if os in oslist: #check if os exist
break
@@ -5800,9 +5800,9 @@ class PEDACmd(object):
while True:
for job in joblist:
msg('%s %s'%(yellow('[+]'),green(job)))
if pyversion is 2:
if pyversion == 2:
job = raw_input('%s'%blue('job:'))
if pyversion is 3:
if pyversion == 3:
job = input('%s'%blue('job:'))
if job != '':
break
@@ -5811,9 +5811,9 @@ class PEDACmd(object):
while True:
for encode in encodelist:
msg('%s %s'%(yellow('[+]'),green(encode)))
if pyversion is 2:
if pyversion == 2:
encode = raw_input('%s'%blue('encode:'))
if pyversion is 3:
if pyversion == 3:
encode = input('%s'%blue('encode:'))
if encode != '':
break