How to Install and Uninstall modernize Package on Ubuntu 21.10 (Impish Indri)

Last updated: February 02,2025

1. Install "modernize" package

Learn how to install modernize on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install modernize

2. Uninstall "modernize" package

This guide let you learn how to uninstall modernize on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove modernize $ sudo apt autoclean && sudo apt autoremove

3. Information about the modernize package on Ubuntu 21.10 (Impish Indri)

Package: modernize
Architecture: all
Version: 0.7-2
Priority: optional
Section: universe/python
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 23
Depends: python3-libmodernize, python3:any
Filename: pool/universe/m/modernize/modernize_0.7-2_all.deb
Size: 4184
MD5sum: 1c7012712f678dd3480baec360ce03c8
SHA1: 98aa1e7d35aab5a4527e6de3dc9835d1dba8fccf
SHA256: ee8cb161a9a33270a19f6007acd533e44aafd1c7207b0374ca3455f7e1a69adc
SHA512: d303893708e1f4735bae947a64437c41954cb20189d805fa1cb9d9c91fe97ece3bfa1389df8dee55aefbf0dce383b0eae9b1abb6c18c3cffc9d9494c74ea2d99
Homepage: https://github.com/python-modernize/python-modernize
Description-en: Modernizes Python code for eventual Python 3 migration
This library is a very thin wrapper around lib2to3 to utilize it to make
Python 2 code more modern with the intention of eventually porting it over
to Python 3.
.
This package installs the python-modernize command line tool. It works like
2to3. It does not guarantee, but it attempts to spit out a codebase compatible
with Python 2.6+ or Python 3. The code that it generates has a runtime
dependency on six, unless the --no-six option is used. Version 1.9.0 or later
of six is recommended. Some of the fixers output code that is not compatible
with Python 2.5 or lower.
Description-md5: a9be81b560b71df96951113b5b917422