Permalink
Browse files

ignore PyCrypto RandPool warning on paramiko import

  • Loading branch information...
1 parent 689bb47 commit 8e2ebb20fd4320894bc713aea29fadd0e6fa155c @minrk minrk committed Jan 23, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 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:

0 comments on commit 8e2ebb2

Please sign in to comment.