Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raise UnsupportedOperation on iostream.fileno() #3072

Merged
merged 1 commit into from Apr 13, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions IPython/kernel/zmq/iostream.py
Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand Down