E3SM-Project / e3sm_diags

E3SM Diagnostics package
https://e3sm-project.github.io/e3sm_diags
BSD 3-Clause "New" or "Revised" License
39 stars 32 forks source link

[Bug]: `DeprecationWarning: This method will be removed in Python 3.12. Use 'parser.read_file()' instead. config.readfp(cfg_file_obj)` #757

Closed tomvothecoder closed 9 months ago

tomvothecoder commented 9 months ago

What happened?

We need to update a line in core_parser.py to use parser.read_file().

  /global/u2/v/vo13/E3SM-Project/e3sm_diags/e3sm_diags/parser/core_parser.py:820: DeprecationWarning: This method will be removed in Python 3.12. Use 'parser.read_file()' instead.
    config.readfp(cfg_file_obj)

What did you expect to happen? Are there are possible answers you came across?

No response

Minimal Complete Verifiable Example (MVCE)

No response

Relevant log output

No response

Anything else we need to know?

No response

Environment

main and latest stable version of e3sm_diags

tomvothecoder commented 9 months ago

Duplicate of #764