diff options
Diffstat (limited to 'scripts/ingen.py')
-rw-r--r-- | scripts/ingen.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/ingen.py b/scripts/ingen.py index 6401fe35..12f52e92 100644 --- a/scripts/ingen.py +++ b/scripts/ingen.py @@ -16,6 +16,7 @@ import os import rdflib +import re import socket import sys @@ -100,7 +101,7 @@ class Remote(Interface): self.sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) self.sock.connect(uri[len('unix://'):]) elif uri.startswith('tcp://'): - self.sock = Socket(socket.AF_INET, socket.SOCK_STREAM) + self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) parsed = re.split('[:/]', uri[len('tcp://'):]) addr = (parsed[0], int(parsed[1])) self.sock.connect(addr) |