Skip to content

Commit 48a5070

Browse files
authored
Minor edit: remove Python 2 compatibility handling
1 parent e76cf76 commit 48a5070

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

+1-4
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,7 @@ 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
395392
realimport = builtins.__import__
396393

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

0 commit comments

Comments
 (0)