From 2f48add05b44743fe6a305abc446b648d5e805f8 Mon Sep 17 00:00:00 2001 From: Mihai-Valentin DUMITRU Date: Fri, 29 Nov 2019 17:14:16 +0200 Subject: [PATCH] silence python3.8 warnings --- peda.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/peda.py b/peda.py index dfcd7cd..14a7f5e 100644 --- a/peda.py +++ b/peda.py @@ -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