Remove import of 'imp' module

Bug #1981077 reported by Rodolfo Alonso
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
Brian Haley

Bug Description

Use importlib.util module instead of imp, since it's
being deprecated:

  DeprecationWarning: the imp module is deprecated in favour of
  importlib; see the module's documentation for alternative uses

Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :
Changed in neutron:
importance: Undecided → High
Changed in neutron:
assignee: nobody → Brian Haley (brian-haley)
Changed in neutron:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/842450
Committed: https://opendev.org/openstack/neutron/commit/357ee21d12d0af6c64ba60f541ab61d44cd6d00f
Submitter: "Zuul (22348)"
Branch: master

commit 357ee21d12d0af6c64ba60f541ab61d44cd6d00f
Author: Brian Haley <email address hidden>
Date: Wed May 18 21:38:06 2022 -0400

    Remove import of 'imp' module

    Use importlib.util module instead of imp, since it's
    being deprecated:

      DeprecationWarning: the imp module is deprecated in favour of
      importlib; see the module's documentation for alternative uses

    Had to change test setup to call super() first to get around a
    config issue I was seeing locally, causing the entire class of
    tests to fail:

      oslo_config.cfg.NoSuchOptError: no such option api_extensions_path
      in group [DEFAULT]

    Closes-bug: #1981077

    Change-Id: Ic171028a661c3f9f83f6758a57aaeab4450aa907

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 21.0.0.0rc1

This issue was fixed in the openstack/neutron 21.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.