File: 0006-SyntaxWarning.patch

package info (click to toggle)
kitchen 1.2.6-9
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,284 kB
  • sloc: python: 10,749; makefile: 22; sh: 4
file content (31 lines) | stat: -rw-r--r-- 1,525 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
--- a/kitchen3/kitchen/text/converters.py
+++ b/kitchen3/kitchen/text/converters.py
@@ -801,7 +801,7 @@
     file
 
     :arg byte_string: byte :class:`bytes` to transform
-    :arg \*args, \*\*kwargs: extra arguments to this function are passed on to
+    :arg *args, **kwargs: extra arguments to this function are passed on to
         the function actually implementing the encoding.  You can use this to
         tweak the output in some cases but, as a general rule, you shouldn't
         because the underlying encoding function is not guaranteed to remain
@@ -833,7 +833,7 @@
 
     :arg byte_string: byte :class:`bytes` to transform.  This should be a base64
         encoded sequence of bytes originally generated by :func:`bytes_to_xml`.
-    :arg \*args, \*\*kwargs: extra arguments to this function are passed on to
+    :arg *args, **kwargs: extra arguments to this function are passed on to
         the function actually implementing the encoding.  You can use this to
         tweak the output in some cases but, as a general rule, you shouldn't
         because the underlying encoding function is not guaranteed to remain
--- a/kitchen3/kitchen/text/display.py
+++ b/kitchen3/kitchen/text/display.py
@@ -664,7 +664,7 @@
     return msg
 
 def _textual_width_le(width, *args):
-    '''Optimize the common case when deciding which :term:`textual width` is
+    r'''Optimize the common case when deciding which :term:`textual width` is
     larger
 
     :arg width: :term:`textual width` to compare against.