File: df-revert-minor-feature-dependent-on-python-patch.patch

package info (click to toggle)
sagemath 8.6-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 113,052 kB
  • sloc: python: 996,064; cpp: 6,208; sh: 3,252; ansic: 3,226; objc: 1,407; makefile: 1,087; lisp: 5
file content (28 lines) | stat: -rw-r--r-- 936 bytes parent folder | download
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
Description: Revert sage commit 5dbc699911095dd03f0141a7c1b7ba1c7056ceef
 This is dependent on a python patch that hasn't landed upstream or in Debian
 yet. It adds a minor feature used nowhere except the doctests, so just revert
 it because we know it will break.
Author: Ximin Luo <infinity0@debian.org>
Bug-Python: https://bugs.python.org/issue27177
Forwarded: not-needed
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/sage/src/sage/rings/integer.pyx
+++ b/sage/src/sage/rings/integer.pyx
@@ -780,16 +780,6 @@
             4
             sage: v[Integer(2):Integer(4)]
             [3, 4]
-
-        See :trac:`20750`::
-
-            sage: import re
-            sage: p = re.compile('(a)b')
-            sage: m = p.match('ab')
-            sage: m.group(Integer(0))
-            'ab'
-            sage: m.group(Integer(1))
-            'a'
         """
         return mpz_get_pyintlong(self.value)