Edgewall Software

Opened 20 months ago

Closed 4 months ago

#13025 closed enhancement (fixed)

Use importlib.import_module rather than __import__

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:


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

Attachments (0)

Change History (6)

comment:1 by Ryan J Ollos, 19 months ago

Keywords: python3 added

comment:2 by Ryan J Ollos, 15 months ago


comment:3 by Ryan J Ollos, 5 months ago


comment:4 by Ryan J Ollos, 4 months 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, 4 months ago

comment:6 by Ryan J Ollos, 4 months 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.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.
to as closed The owner will be changed from Ryan J Ollos to the specified user.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.