Edgewall Software
Modify

Opened 6 years ago

Closed 5 years ago

Last modified 4 years 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:
API Changes:
Internal Changes:

Replaced uses of __import__ with importlib.import_module.

Description

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 (7)

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.

comment:7 by Ryan J Ollos, 4 years ago

Internal Changes: modified (diff)
Release Notes: modified (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.
to 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.