Skip to content

Commit

Permalink
Fixup.
Browse files Browse the repository at this point in the history
  • Loading branch information
kwlzn committed Apr 28, 2020
1 parent 20b5cb8 commit 8aad324
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions notebook/base/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,6 @@ def check_host(self):
if host.startswith('[') and host.endswith(']'):
host = host[1:-1]

if not PY3:
# ip_address only accepts unicode on Python 2
host = host.decode('utf8', 'replace')

# UNIX socket handling
check_host = urldecode_unix_socket_path(host)
if check_host.startswith('/') and os.path.exists(check_host):
Expand Down

0 comments on commit 8aad324

Please sign in to comment.