From a2335b0e335713b5beb7090a92c22001a6d17eb6 Mon Sep 17 00:00:00 2001 From: maximlt Date: Tue, 22 Nov 2022 13:51:48 +0100 Subject: [PATCH] use open builtin directly instead of io.open --- holoviews/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/holoviews/__init__.py b/holoviews/__init__.py index 06d49a1483..874696ca34 100644 --- a/holoviews/__init__.py +++ b/holoviews/__init__.py @@ -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 @@ -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)