1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
From: Antonio Valentino <[email protected]>
Date: Wed, 23 Nov 2022 07:49:30 0000
Subject: Fix compatibility with Python 3.11
Forwarded: https://github.com/pypr/pysph/pull/366
---
pysph/sph/acceleration_eval_gpu_helper.py | 4 ---
pysph/sph/equation.py | 4 ---
pysph/sph/integrator_cython_helper.py | 4 ---
3 files changed, 3 insertions( ), 9 deletions(-)
diff --git a/pysph/sph/acceleration_eval_gpu_helper.py b/pysph/sph/acceleration_eval_gpu_helper.py
index d8b94c7..9080ae8 100644
--- a/pysph/sph/acceleration_eval_gpu_helper.py
b/pysph/sph/acceleration_eval_gpu_helper.py
@@ -101,9 101,7 @@ from .acceleration_eval_cython_helper import (
logger = logging.getLogger(__name__)
-getfullargspec = getattr(
- inspect, 'getfullargspec', inspect.getargspec
-)
getfullargspec = inspect.getfullargspec
def get_converter(backend):
diff --git a/pysph/sph/equation.py b/pysph/sph/equation.py
index c837278..8f68832 100644
--- a/pysph/sph/equation.py
b/pysph/sph/equation.py
@@ -24,9 24,7 @@ from compyle.translator import CUDAConverter
from compyle.config import get_config
-getfullargspec = getattr(
- inspect, 'getfullargspec', inspect.getargspec
-)
getfullargspec = inspect.getfullargspec
def camel_to_underscore(name):
diff --git a/pysph/sph/integrator_cython_helper.py b/pysph/sph/integrator_cython_helper.py
index 580719e..b98fa43 100644
--- a/pysph/sph/integrator_cython_helper.py
b/pysph/sph/integrator_cython_helper.py
@@ -18,9 18,7 @@ from compyle.api import CythonGenerator, get_func_definition
from compyle.cython_generator import get_parallel_range
-getfullargspec = getattr(
- inspect, 'getfullargspec', inspect.getargspec
-)
getfullargspec = inspect.getfullargspec
class IntegratorCythonHelper(object):
|