From 1767a830334efaaf7baa62c0d86f5d70b641b7ea Mon Sep 17 00:00:00 2001 From: Will Toohey Date: Sat, 30 Dec 2017 17:43:17 +1000 Subject: [PATCH] Fix py2 (closes #4) --- ifstools.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ifstools.py b/ifstools.py index bcdab85..90ab6e6 100644 --- a/ifstools.py +++ b/ifstools.py @@ -1,5 +1,11 @@ import argparse import os +try: + # py 2 + input = raw_input +except NameError: + # py 3 + pass from ifs import IFS