Skip to content

Commit

Permalink
Merge pull request #3979 from silx-kit/vasole-patch-1
Browse files Browse the repository at this point in the history
Lazy-loading of multiprocessing module
  • Loading branch information
woutdenolf authored Nov 28, 2023
2 parents 3dd944b + cebbf54 commit 3d17001
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/silx/utils/retry.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# /*##########################################################################
# Copyright (C) 2016-2017 European Synchrotron Radiation Facility
# Copyright (C) 2016-2023 European Synchrotron Radiation Facility
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -27,14 +27,13 @@

__authors__ = ["W. de Nolf"]
__license__ = "MIT"
__date__ = "05/02/2020"
__date__ = "28/11/2023"


import time
import inspect
from functools import wraps
from contextlib import contextmanager
import multiprocessing
from queue import Empty


Expand Down Expand Up @@ -252,6 +251,7 @@ def _method(*args, **kw):
if retry_period is None:
retry_period = RETRY_PERIOD

import multiprocessing
def decorator(method):
@wraps(method)
def wrapper(*args, **kw):
Expand Down

0 comments on commit 3d17001

Please sign in to comment.