Skip to content

Commit

Permalink
Handle using pycryptodome instead of pycryptodomex
Browse files Browse the repository at this point in the history
  • Loading branch information
kjdoyle authored and kevin-bates committed Sep 30, 2020
1 parent f429b1a commit 511d7a2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion enterprise_gateway/services/processproxies/processproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
from jupyter_client import launch_kernel, localinterfaces
from notebook import _tz
from zmq.ssh import tunnel
from Cryptodome.Cipher import AES

try:
from Cryptodome.Cipher import AES
except ImportError:
from Crypto.Cipher import AES

from ..sessions.kernelsessionmanager import KernelSessionManager

Expand Down
6 changes: 5 additions & 1 deletion etc/kernel-launchers/python/scripts/launch_ipykernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
from random import random
from threading import Thread

from Cryptodome.Cipher import AES
try:
from Cryptodome.Cipher import AES
except ImportError:
from Crypto.Cipher import AES

from ipython_genutils.py3compat import str_to_bytes
from jupyter_client.connect import write_connection_file

Expand Down

0 comments on commit 511d7a2

Please sign in to comment.