Skip to content

Commit 64c4766

Browse files
fix: Add missing importlib.util import
* Without first importing importlib.util an AttributeError will be raised ``` Traceback (most recent call last): File "/madanalysis5/./bin/ma5", line 51, in <module> if not importlib.util.find_spec("six"): ^^^^^^^^^^^^^^ AttributeError: module 'importlib' has no attribute 'util' ```
1 parent 3900ec9 commit 64c4766

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

bin/ma5

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ and call immediately the command line interface scripts
3434
"""
3535

3636
import importlib
37+
import importlib.util
3738
import os
3839
import sys
3940

doc/releases/changelog-dev.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
## Bug fixes
88

9+
* Add missing `importlib.util` import.
10+
([#278](https://github.com/MadAnalysis/madanalysis5/pull/278))
11+
912
## Contributors
1013

1114
This release contains contributions from (in alphabetical order):

0 commit comments

Comments
 (0)