Skip to content

Commit

Permalink
Remove python 2 compatibility code
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Nov 14, 2024
1 parent ccaf158 commit 0f94534
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions param/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,10 +517,7 @@ def get_setupcfg_version():
parse setup.cfg...but then git export-subst would not work.
"""
try:
import configparser
except ModuleNotFoundError:
import ConfigParser as configparser # python2 (also prevents dict-like access)
import configparser
import re
cfg = "setup.cfg"
autover_section = 'tool:autover'
Expand Down

0 comments on commit 0f94534

Please sign in to comment.