In Python 3, raw_input was renamed to input. This is now Python 2
and Python 3 compatible.
# Change Log
-## 1.0.0rc1 - 2018-07-17
+## unreleased
+- Python 3 fix for enable-source.
+ https://redmine.openinfosecfoundation.org/issues/2549
+## 1.0.0rc1 - 2018-07-17
- Python 3 fixes.
- Bundle a copy of the index which can be used if download source for
the index is not available, and no index was previously
from suricata.update import config
from suricata.update import sources
+try:
+ input = raw_input
+except:
+ pass
+
logger = logging.getLogger()
default_source = "et/open"
else:
prompt = source["parameters"][param]["prompt"]
while True:
- r = raw_input("%s (%s): " % (prompt, param))
+ r = input("%s (%s): " % (prompt, param))
r = r.strip()
if r:
break