Edgewall Software

Opened 6 years ago

Closed 5 years ago

Last modified 4 years ago

#13025 closed enhancement (fixed)

Use importlib.import_module rather than __import__ — at Version 6

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.3.6
Component: general Version:
Severity: normal Keywords: python3
Cc: Branch:
Release Notes:

Replaced uses of __import__ with importlib.import_module.

API Changes:
Internal Changes:

Description

On trunk, where we support only Python 2.7, we can use importlib. The module is recommended over use of __import__.

Change History (6)

comment:1 by Ryan J Ollos, 6 years ago

Keywords: python3 added

comment:2 by Ryan J Ollos, 6 years ago

Milestone: 1.3.41.3.5

comment:3 by Ryan J Ollos, 5 years ago

Milestone: 1.3.51.3.6

comment:4 by Ryan J Ollos, 5 years ago

Proposed changes: [b6bbc1725/rjollos.git]. I prepared them a long time back and need to do more testing.

comment:5 by Ryan J Ollos, 5 years ago

comment:6 by Ryan J Ollos, 5 years ago

Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed

Fix for checkapidoc.py committed in r17048, merged in r17049, r17050.

__import__ replacements committed to trunk in r17051.

Note: See TracTickets for help on using tickets.