File: fix-unicode-string.patch

package info (click to toggle)
python-wsme 0.6-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 956 kB
  • ctags: 1,831
  • sloc: python: 8,452; makefile: 138
file content (18 lines) | stat: -rw-r--r-- 676 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Fix a unicode string
 Everything uses six, but there's still a problem with a string that hasn't
 been converted to using six.u(), so this patch does that.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2014-02-11

--- python-wsme-0.6.orig/wsmeext/sphinxext.py
+++ python-wsme-0.6/wsmeext/sphinxext.py
@@ -41,7 +41,7 @@ def make_sample_object(datatype):
     if datatype is wsme.types.bytes:
         return six.b('samplestring')
     if datatype is wsme.types.text:
-        return u'sample unicode'
+        return six.u('sample unicode')
     if datatype is int:
         return 5
     sample_obj = getattr(datatype, 'sample', datatype)()