Skip to content

Commit 8aad324

Browse files
committed
Fixup.
1 parent 20b5cb8 commit 8aad324

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

notebook/base/handlers.py

-4
Original file line numberDiff line numberDiff line change
@@ -471,10 +471,6 @@ def check_host(self):
471471
if host.startswith('[') and host.endswith(']'):
472472
host = host[1:-1]
473473

474-
if not PY3:
475-
# ip_address only accepts unicode on Python 2
476-
host = host.decode('utf8', 'replace')
477-
478474
# UNIX socket handling
479475
check_host = urldecode_unix_socket_path(host)
480476
if check_host.startswith('/') and os.path.exists(check_host):

0 commit comments

Comments
 (0)