Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Better report errors where select is missing POLLHUP/POLERR (win32).

Closes gh-153.
  • Loading branch information...
commit 6bc709adfec4af902619f12a922d7e086ac13eeb 1 parent 627f9d3
@fperez fperez authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 IPython/Extensions/ipy_vimserver.py
View
7 IPython/Extensions/ipy_vimserver.py
@@ -73,7 +73,12 @@
import os, threading, subprocess
import re
-ERRCONDS = select.POLLHUP|select.POLLERR
+try:
+ ERRCONDS = select.POLLHUP|select.POLLERR
+except AttributeError:
+ raise ImportError("Vim server not supported on this platform - select "
+ "missing necessary POLLHUP/POLLERR functionality")
+
SERVER = None
ip = IPython.ipapi.get()
Please sign in to comment.
Something went wrong with that request. Please try again.