File: doc_ignore_exceptions.patch

package info (click to toggle)
python-gsd 3.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,020 kB
  • sloc: python: 3,141; ansic: 2,057; cpp: 120; makefile: 16
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-02-12 16:05:09.160195550 +0100
+++ python-gsd/doc/fl-examples.rst	2025-02-12 16:05:09.140195369 +0100
@@ -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',
@@ -180,6 +182,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-02-12 16:05:09.160195550 +0100
+++ python-gsd/gsd/fl.pyx	2025-02-12 16:05:09.140195369 +0100
@@ -419,7 +419,6 @@
         remain the same.
 
         Example:
-            .. ipython:: python
 
                 with gsd.fl.open(name='file.gsd', mode='w',
                                  application="My application",
@@ -659,7 +658,7 @@
               ``False`` if it does not.
 
         Example:
-            .. ipython:: python
+            .. highlight:: python
 
                 with gsd.fl.open(name='file.gsd', mode='w',
                                  application="My application",