diff options
author | David Robillard <d@drobilla.net> | 2015-11-08 01:08:13 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-11-08 01:08:13 +0000 |
commit | 9c2bb9e0e2bfd726eef5d7680bc674915817832f (patch) | |
tree | 5f315a38398f04719aaa3b8fa893a01cd0c96923 /scripts/ingenish | |
parent | 8510f80faad7a719a97cf14b1a82a1cc2141282b (diff) | |
download | ingen-9c2bb9e0e2bfd726eef5d7680bc674915817832f.tar.gz ingen-9c2bb9e0e2bfd726eef5d7680bc674915817832f.tar.bz2 ingen-9c2bb9e0e2bfd726eef5d7680bc674915817832f.zip |
Fix ingenish for Python 3
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5811 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'scripts/ingenish')
-rwxr-xr-x | scripts/ingenish | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/ingenish b/scripts/ingenish index a1ff3a56..2e5d3d88 100755 --- a/scripts/ingenish +++ b/scripts/ingenish @@ -25,6 +25,12 @@ try: except: pass +# Python 2 compatibility +try: + input = raw_input +except NameError: + pass + def print_usage(): print('''Usage: ingenish [OPTION]... [COMMAND [ARGUMENT]...] @@ -39,7 +45,7 @@ Options: Commands: put SUBJECT BODY - set SUBJECT BODY + set SUBJECT KEY VALUE connect TAIL HEAD disconnect TAIL HEAD patch SUBJECT REMOVE ADD @@ -101,7 +107,7 @@ if len(sys.argv) - a == 0: print('Ingen server at %s' % server) while True: try: - run(shlex.split(raw_input('> '))) + run(shlex.split(input('> '))) except (EOFError, KeyboardInterrupt, SystemExit): break except: |