This commit is contained in:
Kovid Goyal 2018-06-09 23:21:00 +05:30
parent fc74d22724
commit ddfe7797e5
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -5,6 +5,7 @@
import json
import re
import sys
import types
from functools import partial
from .cli import emph, parse_args
@ -83,7 +84,7 @@ def recv(self, more_needed, timeout):
def do_io(to, send, no_response):
payload = send.get('payload')
if payload is None or isinstance(payload, (str, bytes)):
if not isinstance(payload, types.GeneratorType):
send_data = encode_send(send)
else:
def send_generator():