diff options
Diffstat (limited to 'scripts/ingen.py')
-rw-r--r-- | scripts/ingen.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/ingen.py b/scripts/ingen.py index c66b0293..685b0538 100644 --- a/scripts/ingen.py +++ b/scripts/ingen.py @@ -14,12 +14,16 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -import StringIO import os import rdflib import socket import sys +try: + import StringIO +except ImportError: + from io import StringIO + class NS: ingen = rdflib.Namespace('http://drobilla.net/ns/ingen#') ingerr = rdflib.Namespace('http://drobilla.net/ns/ingen/errors#') |