Skip to content

Commit c917501

Browse files
authored
import 'escape' from html, not from cgi
Under python3.8 'from cgi import escape' will fail. Import from html instead.
1 parent e8bf3bf commit c917501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nbviewer/providers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import statsd
1313
import asyncio
1414

15-
from cgi import escape
15+
from html import escape
1616
from contextlib import contextmanager
1717
from datetime import datetime
1818

0 commit comments

Comments
 (0)