File: 06_fix-sphinx-rtype.patch

package info (click to toggle)
python-sfml 2.2~git20150611.196c88%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,024 kB
  • ctags: 1,605
  • sloc: python: 1,125; cpp: 309; makefile: 118
file content (49 lines) | stat: -rw-r--r-- 1,230 bytes parent folder | download | duplicates (3)
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
Description: Fix Sphinx rtype
 Fixes FTBFS with recent versions of Sphinx which treat the following
 warning as an error: "more than one target found for cross-reference
 u'string': sfml.graphics.Text.string, sfml.network.IpAddress.string".
Forwarded: no
Author: Graham Inggs <ginggs@debian.org>
Last-Update: 2017-05-29
--- a/doc/source/api/audio.rst
+++ b/doc/source/api/audio.rst
@@ -142,7 +142,7 @@
       will be converted internally in an array of **Int16**) and its
       lenght must be an even number.
 
-      :rtype: bytes or string
+      :rtype: bytes or str
 
 SoundBuffer
 ^^^^^^^^^^^
@@ -872,7 +872,7 @@
       none is available, None is returned.
 
       :return: The name of the default audio capture device
-      :rtype: string (or None)
+      :rtype: str (or None)
 
    .. method:: set_device(name)
 
--- a/doc/source/api/graphics.rst
+++ b/doc/source/api/graphics.rst
@@ -2142,7 +2142,7 @@
 
       Set/get the text's string.
 
-      :rtype: bytes or string
+      :rtype: bytes or str
 
    .. py:attribute:: font
 
--- a/doc/source/api/window.rst
+++ b/doc/source/api/window.rst
@@ -448,7 +448,7 @@
 
 		Return a copy of the data inside.
 
-		:rtype: bytes or string
+		:rtype: bytes or str
 
 
 Window