Changeset 9c2bb9e0 in ingen


Ignore:
Timestamp:
Nov 7, 2015, 5:08:13 PM (2 years ago)
Author:
David Robillard <d@…>
Branches:
groups, master, nodeless, parallel, parameters, sequencefix, tasks
Children:
36219bc
Parents:
8510f80
Message:

Fix ingenish for Python 3

git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5811 a436a847-0d15-0410-975c-d299462d15a1

Location:
scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scripts/ingen.py

    r8510f80 r9c2bb9e0  
    186186        # Receive response and parse into a model
    187187        response_str = self.recv()
    188         response_model = rdflib.Graph()
    189         response_model.namespace_manager = self.ns_manager
     188        response_model = rdflib.Graph(namespace_manager=self.ns_manager)
    190189        response_model.parse(StringIO(response_str), self.server_base, format='n3')
    191190
  • scripts/ingenish

    r8510f80 r9c2bb9e0  
    2626    pass
    2727
     28# Python 2 compatibility
     29try:
     30    input = raw_input
     31except NameError:
     32    pass
     33
    2834def print_usage():
    2935    print('''Usage: ingenish [OPTION]... [COMMAND [ARGUMENT]...]
     
    4046Commands:
    4147    put SUBJECT BODY
    42     set SUBJECT BODY
     48    set SUBJECT KEY VALUE
    4349    connect TAIL HEAD
    4450    disconnect TAIL HEAD
     
    102108    while True:
    103109        try:
    104             run(shlex.split(raw_input('> ')))
     110            run(shlex.split(input('> ')))
    105111        except (EOFError, KeyboardInterrupt, SystemExit):
    106112            break
Note: See TracChangeset for help on using the changeset viewer.