Skip to content

Commit 2c2dd48

Browse files
committed
Remove python 2 specific code after NB port
1 parent 56dadf5 commit 2c2dd48

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

jupyter_server/base/handlers.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
from traitlets.config import Application
2828
from ipython_genutils.path import filefind
29-
from ipython_genutils.py3compat import string_types, PY3
29+
from ipython_genutils.py3compat import string_types
3030

3131
import jupyter_server
3232
from jupyter_server._tz import utcnow
@@ -405,10 +405,6 @@ def check_host(self):
405405
if host.startswith('[') and host.endswith(']'):
406406
host = host[1:-1]
407407

408-
if not PY3:
409-
# ip_address only accepts unicode on Python 2
410-
host = host.decode('utf8', 'replace')
411-
412408
try:
413409
addr = ipaddress.ip_address(host)
414410
except ValueError:

0 commit comments

Comments
 (0)