Mercurial > hg
annotate .gitattributes @ 50757:19108906abaf stable
extensions: imp module is removed in Python 3.12 - use importlib to load files
imp has been deprecated for a long time, and has finally been removed in Python
3.12 .
imp was only used for loading extensions that has been specified with direct
.py path or path to a package directory. The same use cases can be achieved
quite simple with importlib, , possiby with small changes in corner cases with
undefined behaviour, such as extensions without .py source.
There might also be corner cases and undefined behaviour around use of
sys.modules and reloading.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 28 Jun 2023 14:23:13 +0200 |
parents | 9fa3cda7449e |
children |
rev | line source |
---|---|
50425
9fa3cda7449e
heptapod: add `.gitattributes` file to improve language detection
Raphaël Gomès <rgomes@octobus.net>
parents:
diff
changeset
|
1 # So GitLab doesn't think we're using tons of Perl |
9fa3cda7449e
heptapod: add `.gitattributes` file to improve language detection
Raphaël Gomès <rgomes@octobus.net>
parents:
diff
changeset
|
2 *.t -linguist-detectable |