about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-09-01 15:03:47 +0200
committertoonn <toonn@toonn.io>2021-09-01 16:03:48 +0200
commitbc8e136539f24081647a3e2a24556afcb59d9403 (patch)
tree439b22c4113f5e20cdb52b8e14c7a9bff5d23a37 /ranger
parent3a318f18d8064ab23f9bf89d075fa99e78ec63b6 (diff)
downloadranger-bc8e136539f24081647a3e2a24556afcb59d9403.tar.gz
colorscheme: Switch to io.open
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/colorscheme.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/gui/colorscheme.py b/ranger/gui/colorscheme.py
index cd88ccee..d14b4eda 100644
--- a/ranger/gui/colorscheme.py
+++ b/ranger/gui/colorscheme.py
@@ -28,6 +28,7 @@ from __future__ import (absolute_import, division, print_function)
 
 import os.path
 from curses import color_pair
+from io import open
 
 import ranger
 from ranger.gui.color import get_color
@@ -35,7 +36,6 @@ from ranger.gui.context import Context
 from ranger.core.main import allow_access_to_confdir
 from ranger.ext.cached_function import cached_function
 from ranger.ext.iter_tools import flatten
-from ranger.ext.open23 import open23
 
 
 class ColorSchemeError(Exception):
@@ -109,7 +109,7 @@ def _colorscheme_name_to_class(signal):  # pylint: disable=too-many-branches
         if os.path.exists(signal.fm.confpath('colorschemes')):
             initpy = signal.fm.confpath('colorschemes', '__init__.py')
             if not os.path.exists(initpy):
-                with open23(initpy, "a"):
+                with open(initpy, "a"):
                     # Just create the file
                     pass