Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

raise UnsupportedOperation on iostream.fileno() #3072

Merged
merged 1 commit into from

2 participants

@minrk
Owner

closes #3017

@minrk
Owner

This should wait for #2791, which is more complicated and has been ready to merge for a month, and I don't want to rebase it again.

@ellisonbg
Owner

OK #2791 has been merged and this one is pretty simple. Merging.

@ellisonbg
Owner

Oh sorry, looks like it needs rebasing again :(

@minrk
Owner

rebased

@ellisonbg
Owner

Great, merging...

@ellisonbg ellisonbg merged commit 175bb08 into ipython:master
@minrk minrk deleted the minrk:streamfileno branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 12, 2013
  1. @minrk
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 3 deletions.
  1. +5 −3 IPython/kernel/zmq/iostream.py
View
8 IPython/kernel/zmq/iostream.py
@@ -8,12 +8,11 @@
# the file COPYING, distributed as part of this software.
#-----------------------------------------------------------------------------
-import sys
-import time
import os
import threading
+import time
import uuid
-from io import StringIO
+from io import StringIO, UnsupportedOperation
import zmq
@@ -171,6 +170,9 @@ def read(self, size=-1):
def readline(self, size=-1):
raise IOError('Read not supported on a write only stream.')
+
+ def fileno(self):
+ raise UnsupportedOperation("IOStream has no fileno.")
def write(self, string):
if self.pub_socket is None:
Something went wrong with that request. Please try again.