Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit 091ef48

Browse files
committed
Use six for correct Python2/3 compatibility
1 parent c175659 commit 091ef48

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/jupyter_notebook_gist/config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
from traitlets.traitlets import Unicode
33

44

5+
from six import
6+
7+
58
class NotebookGist(LoggingConfigurable):
69

710
oauth_client_id = Unicode(
@@ -20,7 +23,7 @@ def __init__(self, *args, **kwargs):
2023
# update the frontend settings with the currently passed
2124
# OAUTH client id
2225
client_id = self.config.NotebookGist.oauth_client_id
23-
if not isinstance(client_id, (str, bytes)):
26+
if not isinstance(client_id, six.string_types):
2427
client_id = None
2528
self.config_manager.update('notebook', {
2629
'oauth_client_id': client_id,

0 commit comments

Comments
 (0)