aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/scripts/per-site-settings.py
diff options
context:
space:
mode:
authorGravatar Ben Boeckel <MathStuf@gmail.com>2010-12-04 00:34:32 -0500
committerGravatar Ben Boeckel <MathStuf@gmail.com>2010-12-04 00:34:32 -0500
commit83478c0589475b1ce1f605c38c1bed9214e9195f (patch)
tree28dbef57a6b7504fdeba41b5b25d4c1969f4ba76 /examples/data/scripts/per-site-settings.py
parent2092f4ff7a4fa5e3d689ec7f7bc09ba62603ab0e (diff)
Sockets have a send, not a write, method
Diffstat (limited to 'examples/data/scripts/per-site-settings.py')
-rwxr-xr-xexamples/data/scripts/per-site-settings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/data/scripts/per-site-settings.py b/examples/data/scripts/per-site-settings.py
index 26d047e..1a49ac8 100755
--- a/examples/data/scripts/per-site-settings.py
+++ b/examples/data/scripts/per-site-settings.py
@@ -94,7 +94,7 @@ def write_to_socket(commands, sockpath):
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
sock.connect(sockpath)
for command in commands:
- sock.write(command)
+ sock.send(command)
sock.close()