Skip to content

Commit

Permalink
Merge pull request #109 from kevin-bates/final-cleanup
Browse files Browse the repository at this point in the history
Remove python 2 specific code after NB port
  • Loading branch information
Zsailer authored Sep 27, 2019
2 parents 56dadf5 + 2c2dd48 commit ccc64d7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions jupyter_server/base/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

from traitlets.config import Application
from ipython_genutils.path import filefind
from ipython_genutils.py3compat import string_types, PY3
from ipython_genutils.py3compat import string_types

import jupyter_server
from jupyter_server._tz import utcnow
Expand Down Expand Up @@ -405,10 +405,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')

try:
addr = ipaddress.ip_address(host)
except ValueError:
Expand Down

0 comments on commit ccc64d7

Please sign in to comment.