about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-08-27 19:37:50 +0200
committertoonn <toonn@toonn.io>2021-08-27 19:37:50 +0200
commitbb8eb7102b9476f6d427cafb3c060d46fbc13afe (patch)
tree48a1b9681a9d9abd2bf43a3c386f1a2d55f04550 /ranger
parent13fbf129b19730d46459feddd89c78aa44feafe1 (diff)
downloadranger-bb8eb7102b9476f6d427cafb3c060d46fbc13afe.tar.gz
colorscheme: Switch to open23
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/colorscheme.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/gui/colorscheme.py b/ranger/gui/colorscheme.py
index 0e68c5ff..cd88ccee 100644
--- a/ranger/gui/colorscheme.py
+++ b/ranger/gui/colorscheme.py
@@ -35,6 +35,7 @@ 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):
@@ -108,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 open(initpy, "a"):
+                with open23(initpy, "a"):
                     # Just create the file
                     pass