about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/math/sage/patches/sagenb-cmp-deprecation.patch
blob: 9f502a6695173327e57c61b36658563b7fd6b57a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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.*')