Skip to content

Commit

Permalink
Update reload_fn_provider for python 3.12 (#947)
Browse files Browse the repository at this point in the history
Update 'reload_fn_provider' for python 3.12 to use 'importlib'

'imp' Deprecated 
https://docs.python.org/3.11/library/imp.html
  • Loading branch information
Kentoseth committed Jun 28, 2024
1 parent 213ba0c commit 0901806
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion castervoice/lib/ctrl/mgr/loading/load/reload_fn_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ def get_reload_fn(self):
"""
Reimports an already imported module. Python 2/3 compatible method.
"""
from imp import reload
#Python 3.12 support
from importlib import reload
return reload

0 comments on commit 0901806

Please sign in to comment.