aboutsummaryrefslogtreecommitdiffstats
path: root/nyancat.py
diff options
context:
space:
mode:
authorKevin Lange <k@dakko.us>2011-11-30 17:26:22 -0600
committerKevin Lange <k@dakko.us>2011-11-30 17:26:22 -0600
commite0720adbded8b73aea42542f57c02042584b94fc (patch)
treec1a38f3ae23bdad6b56ce95b8992bafdb415f6c0 /nyancat.py
parent8174fc31338d2e718bbd42c65e249e14f8e6b4b8 (diff)
downloadnyancat-e0720adbded8b73aea42542f57c02042584b94fc.tar.gz
Buffer 1024 characters on each read
Diffstat (limited to '')
-rwxr-xr-xnyancat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nyancat.py b/nyancat.py
index ebeb303..90029c1 100755
--- a/nyancat.py
+++ b/nyancat.py
@@ -19,7 +19,7 @@ class TNH(TelnetHandler):
else:
p.stdin.write("2\n")
while 1:
- s = p.stdout.read(1)
+ s = p.stdout.read(1024)
try:
self.write(s)
except: