nixpkgs/pkgs/applications/science/math/sage/patches/sagenb-cmp-deprecation.patch
2019-11-06 14:40:13 +01:00

14 lines
417 B
Diff

diff --git a/sagenb/__init__.py b/sagenb/__init__.py
index 4db0d2cb..2fc5f01e 100644
--- a/sagenb/__init__.py
+++ b/sagenb/__init__.py
@@ -1,3 +1,8 @@
# -*- coding: utf-8 -*
# init
+import warnings
from . import storage
+
+# deprecation in attrs, needs to be fixed in twisted
+warnings.filterwarnings('ignore', category=DeprecationWarning,
+ message=r'The usage of `cmp` is deprecated and will be removed.*')