##// END OF EJS Templates
raise UnsupportedOperation on iostream.fileno()...
MinRK -
Show More
@@ -8,12 +8,11 b''
8 # the file COPYING, distributed as part of this software.
8 # the file COPYING, distributed as part of this software.
9 #-----------------------------------------------------------------------------
9 #-----------------------------------------------------------------------------
10
10
11 import sys
12 import time
13 import os
11 import os
14 import threading
12 import threading
13 import time
15 import uuid
14 import uuid
16 from io import StringIO
15 from io import StringIO, UnsupportedOperation
17
16
18 import zmq
17 import zmq
19
18
@@ -171,6 +170,9 b' class OutStream(object):'
171
170
172 def readline(self, size=-1):
171 def readline(self, size=-1):
173 raise IOError('Read not supported on a write only stream.')
172 raise IOError('Read not supported on a write only stream.')
173
174 def fileno(self):
175 raise UnsupportedOperation("IOStream has no fileno.")
174
176
175 def write(self, string):
177 def write(self, string):
176 if self.pub_socket is None:
178 if self.pub_socket is None:
General Comments 0
You need to be logged in to leave comments. Login now