File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 39
39
__all__ = ['Jwst' , 'JwstClass' ]
40
40
41
41
42
+ # We do trust the ESA tar files, this is to avoid the new to Python 3.12 deprecation warning
43
+ # https://docs.python.org/3.12/library/tarfile.html#tarfile-extraction-filter
44
+ if hasattr (tarfile , "fully_trusted_filter" ):
45
+ tarfile .TarFile .extraction_filter = staticmethod (tarfile .fully_trusted_filter )
46
+
47
+
42
48
class JwstClass (BaseQuery ):
43
49
44
50
"""
Original file line number Diff line number Diff line change 29
29
__all__ = ['XMMNewton' , 'XMMNewtonClass' ]
30
30
31
31
32
+ # We do trust the ESA tar files, this is to avoid the new to Python 3.12 deprecation warning
33
+ # https://docs.python.org/3.12/library/tarfile.html#tarfile-extraction-filter
34
+ if hasattr (tarfile , "fully_trusted_filter" ):
35
+ tarfile .TarFile .extraction_filter = staticmethod (tarfile .fully_trusted_filter )
36
+
37
+
32
38
class XMMNewtonClass (BaseQuery ):
33
39
data_url = conf .DATA_ACTION
34
40
data_aio_url = conf .DATA_ACTION_AIO
You can’t perform that action at this time.
0 commit comments