Skip to content

Commit

Permalink
use open builtin directly instead of io.open
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt committed Nov 22, 2022
1 parent 32532d0 commit a2335b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holoviews/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
To ask the community go to https://discourse.holoviz.org/.
To report issues go to https://github.com/holoviz/holoviews.
"""
import io, os, sys
import os, sys

import param

Expand Down Expand Up @@ -134,7 +134,7 @@ def __call__(self, *args, **opts): # noqa (dummy signature)
"~/.config/holoviews/holoviews.rc"]:
filename = os.path.expanduser(rcfile)
if os.path.isfile(filename):
with io.open(filename, encoding='utf8') as f:
with open(filename, encoding='utf8') as f:
code = compile(f.read(), filename, 'exec')
try:
exec(code)
Expand Down

0 comments on commit a2335b0

Please sign in to comment.