Skip to content

Instantly share code, notes, and snippets.

@d53dave
Last active July 29, 2017 14:00
Show Gist options
  • Save d53dave/d29cd2e75ce06650e8b875a04a0a68db to your computer and use it in GitHub Desktop.
Save d53dave/d29cd2e75ce06650e8b875a04a0a68db to your computer and use it in GitHub Desktop.
Fixing pyzmq 16 and 17 fileno() issue
#!/bin/sh
cd $(pipenv --venv) && sed -i '/_poller_class = Poller/ a\
def fileno(self):\
return self.FD\
' $(egrep -lir --include="__init__.py" "class Socket\(_AsyncIO, _future._AsyncSocket\)" .) && cd -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment