Merge pull request #146 from mdumitru/master

silence python3.8 warnings
This commit is contained in:
Long Le 2020-01-28 07:45:25 +07:00 committed by GitHub
commit 62b368fa3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

14
peda.py
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