Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ignore PyCrypto RandPool warning on paramiko import

  • Loading branch information...
commit 8e2ebb20fd4320894bc713aea29fadd0e6fa155c 1 parent 689bb47
Min RK minrk authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 IPython/zmq/tunnel.py
5 IPython/zmq/tunnel.py
View
@@ -18,9 +18,12 @@
import os,sys, atexit
from multiprocessing import Process
from getpass import getpass, getuser
+import warnings
try:
- import paramiko
+ with warnings.catch_warnings():
+ warnings.simplefilter('ignore', DeprecationWarning)
+ import paramiko
except ImportError:
paramiko = None
else:
Please sign in to comment.
Something went wrong with that request. Please try again.