File: doc_ignore_exceptions.patch

package info (click to toggle)
python-gsd 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,020 kB
  • sloc: python: 3,252; ansic: 1,965; cpp: 129; makefile: 14
file content (49 lines) | stat: -rw-r--r-- 1,501 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Index: python-gsd/doc/fl-examples.rst
===================================================================
--- python-gsd.orig/doc/fl-examples.rst	2025-08-11 10:19:04.843429229 +0200
+++ python-gsd/doc/fl-examples.rst	2025-08-11 10:19:04.839429181 +0200
@@ -116,6 +116,7 @@
 ^^^^^^^^^^^^^^^^^^^^
 
 .. ipython:: python
+  :okexcept:
 
     f = gsd.fl.open(name="file.gsd", mode='r')
     f.find_matching_chunk_names('')
@@ -163,6 +164,7 @@
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 .. ipython:: python
+  :okexcept:
 
     f = gsd.fl.open(name="file.gsd",
                     mode='w',
@@ -181,6 +183,7 @@
 ^^^^^^^^^^^^^^^^^^^^^^^^
 
 .. ipython:: python
+  :okexcept:
 
     with gsd.fl.open(name="file.gsd", mode='r') as f:
         data = f.read_chunk(frame=0, name='double');
Index: python-gsd/gsd/fl.pyx
===================================================================
--- python-gsd.orig/gsd/fl.pyx	2025-08-11 10:19:04.843429229 +0200
+++ python-gsd/gsd/fl.pyx	2025-08-11 10:19:04.839429181 +0200
@@ -416,7 +416,6 @@
         remain the same.
 
         Example:
-            .. ipython:: python
 
                 with gsd.fl.open(name='file.gsd', mode='w',
                                  application="My application",
@@ -662,7 +661,7 @@
               ``False`` if it does not.
 
         Example:
-            .. ipython:: python
+            .. highlight:: python
 
                 with gsd.fl.open(name='file.gsd', mode='w',
                                  application="My application",