Skip to content

Commit

Permalink
cc
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnitz committed Jul 29, 2024
1 parent b9d35b2 commit 92bb4db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pycbc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,12 @@ def gps_now():

return float(Time.now().gps)

# This is needed as a backwards compatibility. The function was removed in
# This is needed as a backwards compatibility. The function was removed in
# python 3.12.
def load_source(modname, filename):
loader = importlib.machinery.SourceFileLoader(modname, filename)
spec = importlib.util.spec_from_file_location(modname, filename, loader=loader)
spec = importlib.util.spec_from_file_location(modname, filename,
loader=loader)
module = importlib.util.module_from_spec(spec)
# The module is always executed and not cached in sys.modules.
# Uncomment the following line to cache the module.
Expand Down

0 comments on commit 92bb4db

Please sign in to comment.