Skip to content

Commit

Permalink
remove usage of ipython_genutils
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Mar 12, 2022
1 parent 440fef1 commit 7980d8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel_gateway/services/sessions/sessionmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from notebook.utils import maybe_future
from tornado import web, gen
from traitlets.config.configurable import LoggingConfigurable
from ipython_genutils.py3compat import unicode_type


class SessionManager(LoggingConfigurable):
"""Simple implementation of the SessionManager interface that allows clients
Expand Down Expand Up @@ -48,7 +48,7 @@ def session_exists(self, path, *args, **kwargs):

def new_session_id(self):
"""Creates a uuid for a new session."""
return unicode_type(uuid.uuid4())
return str(uuid.uuid4())

@gen.coroutine
def create_session(self, path=None, kernel_name=None, kernel_id=None, *args, **kwargs):
Expand Down

0 comments on commit 7980d8f

Please sign in to comment.