We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56dadf5 commit 2c2dd48Copy full SHA for 2c2dd48
jupyter_server/base/handlers.py
@@ -26,7 +26,7 @@
26
27
from traitlets.config import Application
28
from ipython_genutils.path import filefind
29
-from ipython_genutils.py3compat import string_types, PY3
+from ipython_genutils.py3compat import string_types
30
31
import jupyter_server
32
from jupyter_server._tz import utcnow
@@ -405,10 +405,6 @@ def check_host(self):
405
if host.startswith('[') and host.endswith(']'):
406
host = host[1:-1]
407
408
- if not PY3:
409
- # ip_address only accepts unicode on Python 2
410
- host = host.decode('utf8', 'replace')
411
-
412
try:
413
addr = ipaddress.ip_address(host)
414
except ValueError:
0 commit comments