Skip to content

Commit

Permalink
Drop Python 2 deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Aug 9, 2024
1 parent edc59b3 commit f639fff
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tools/build/make_module_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,6 @@ def _check_one(name, expected, found):
version = '%s'
_check_one('%s', version, myversion)
"""
if args.name == 'kernel':
template += """
import sys
if sys.version_info[0] < 3:
import warnings
warnings.warn(
"Python 2 support is deprecated in IMP and will be removed in "
"the next major release. Please port your workflows to Python 3.")
"""
g = tools.PythonFileGenerator()
g.write(outf, template % (version, args.name))

Expand Down

0 comments on commit f639fff

Please sign in to comment.