void-packages/srcpkgs/sagemath/patches/07-ignore_warning.patch

16 lines
559 B
Diff

- this ignores a warning caused by old notebook
--- a/src/sage/all.py
+++ b/src/sage/all.py
@@ -100,6 +100,9 @@ warnings.filterwarnings('ignore', category=DeprecationWarning,
message='The distutils(.sysconfig module| package) is deprecated',
module='Cython|distutils|numpy|sage.env|sage.features')
+warnings.filterwarnings('ignore', category=DeprecationWarning,
+ message=r"invalid escape sequence '\\s'")
+
################ end setup warnings ###############################