From 55ba216a7159eaa8e1ed82fa8075f9fc4f8fafa6 Mon Sep 17 00:00:00 2001 From: David Kennedy Date: Mon, 3 Feb 2020 19:58:42 -0500 Subject: [PATCH] fix python3 raw input --- readme/CHANGELOG | 2 ++ setoolkit | 2 +- src/core/set.py | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/readme/CHANGELOG b/readme/CHANGELOG index d302c0cb4..2e3ad930a 100644 --- a/readme/CHANGELOG +++ b/readme/CHANGELOG @@ -5,6 +5,8 @@ version 8.0.2 * fix an issue on harvester file not defined (python 3 compat) * add a simple install for setoolkit (setup.py) * teensy remove old path generation location /usr/share/set to /usr/share/setoolkit +* fixed raw_input issue for python3 +* changed env variable to python3 ~~~~~~~~~~~~~~~~ version 8.0.1 diff --git a/setoolkit b/setoolkit index eaee194cc..0721e2dc9 100755 --- a/setoolkit +++ b/setoolkit @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # coding=utf-8 import os import re diff --git a/src/core/set.py b/src/core/set.py index c0fbf83b3..05ce51937 100644 --- a/src/core/set.py +++ b/src/core/set.py @@ -14,6 +14,11 @@ import socket from src.core.setcore import * from src.core.menu import text +try: + raw_input +except: + raw_input = input + ipaddr = "" me = mod_name() #