Python 3.7 compatible fixes for 3.9

Description

Fix some things that will break in 3.9, but are still compatible with 3.7.

Examples:

  • importing ABC from collections is removed, use from abc

  • macpath module removed

  • platform.popenos.popen

  • time.clock removed, use time.perf_counter

  • pyvenv removed, use python -m venv

  • filemode removed from tarfile module

  • XMLParser no longer accepts html argument

  • Removed doctype from XMLParser

  • array: tostring() and fromstring() removed

  • base64 encodestring and decodestring removed (now encodebytes/decodebytes)

  • json.loads() no longer accepts encoding param

  • unescape removed from HTMLParser, use html.unescape

  • _dummy_thread and dummy_threading modules removed

  • __import__() now raises ImportError instead of ValueError

  • Unexpected errors in calling the __iter__ method are no longer masked by TypeError

Zendesk Ticket IDs

None

Activity

Show:
Done

Details

Priority

Assignee

Reporter

Approvers

François Blackburn

Fix versions

Sprint

Zendesk Support

Created January 19, 2023 at 3:23 PM
Updated February 2, 2023 at 1:20 PM
Resolved January 20, 2023 at 1:46 PM