From 14dcf39fc89d598e0c5a1443142a857642b584a1 Mon Sep 17 00:00:00 2001 From: Courtney Peverley Date: Tue, 9 Jul 2024 14:28:35 -0600 Subject: [PATCH] remove unnecessary python version check --- test/unit/test_hist_config.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test/unit/test_hist_config.py b/test/unit/test_hist_config.py index 9b701439..a43f2e50 100644 --- a/test/unit/test_hist_config.py +++ b/test/unit/test_hist_config.py @@ -27,14 +27,6 @@ _TMP_DIR = os.path.join(__TEST_DIR, "tmp") _LOGGER = logging.getLogger(__name__) -# Find python version -PY3 = sys.version_info[0] > 2 -if PY3: - def __FILE_OPEN(x): return open(x, 'r', encoding='utf-8') -else: - def __FILE_OPEN(x): return open(x, 'r') -# End if - if not os.path.exists(__CIME_CONFIG_DIR): raise ImportError("Cannot find /cime_config")