Skip to content

Commit

Permalink
remove unnecessary python version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Courtney Peverley committed Jul 9, 2024
1 parent 228fc52 commit 14dcf39
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test/unit/test_hist_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <root>/cime_config")

Expand Down

0 comments on commit 14dcf39

Please sign in to comment.