Skip to content

Commit 6f519c8

Browse files
authored
Merge pull request #4251 from bartbroere/python-2-builtins-not-necessary
Minor edit: remove Python 2 compatibility handling
2 parents e76cf76 + 41b992c commit 6f519c8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: packages/python/plotly/plotly/tests/test_io/test_renderers.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,8 @@ def test_missing_webbrowser_module(fig1):
388388
"""
389389
Assert that no errors occur if the webbrowser module is absent
390390
"""
391-
try:
392-
import builtins
393-
except ImportError:
394-
import __builtin__ as builtins
391+
import builtins
392+
395393
realimport = builtins.__import__
396394

397395
def webbrowser_absent_import(name, globals, locals, fromlist, level):

0 commit comments

Comments
 (0)