Skip to content

Drop Python 2.7 support for better code quality and support of new language features #346

@friederschueler

Description

@friederschueler

Hi,

I would like to propose to drop the support for python 2.7. Official support for this version (EOL) ended on 31.12.2020 which was three years ago and over 12 years after 2.7 was released and over 20 years after Python 2.x. Even Debian oldstable has support for Python 3.7.
My main reason for this suggestion is code quality and the new language features (like type hints!). My PyLint can't handle the mixed style of the current scripts and things like:

try:
    from configparser import RawConfigParser, NoOptionError, NoSectionError
except ImportError:
    from ConfigParser import RawConfigParser, NoOptionError, NoSectionError
try:
    # Python 3
    eds.read_file(fp)
except AttributeError:
    # Python 2
    eds.readfp(fp)

are ugly and smelly and can lead to further code errors. What do you guys think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions