Skip to content

Drop Python 2 support

Ishaan Arora requested to merge pulsar17/extensions:drop-py2 into master

The MR intends to remove support for Python 2 entirely.

Most of the changes are (but not limited to):

  • Moving from Classic Style classes to New Style classes (classes that don't explicitly inherit from object since it is not required in Python 3)
  • Removing Python 2 compatibility code - the likes of if PY3: then ...
  • Removing the use of unicode and using str instead.

The custom version of TemporaryDirectory() has been replaced by tempfile's TemporaryDirectory()

Merge request reports