aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/telepathy-gabble/files/patch-tools_glib-errors-str-gen.py
blob: 3d92f6244aaabe36702cfc7e604305f70ac05fc7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- tools/glib-errors-str-gen.py.orig   2014-05-07 14:28:02 UTC
+++ tools/glib-errors-str-gen.py
@@ -17,17 +17,17 @@ class Generator(object):
         self.__docs = []
 
     def h(self, s):
-        if isinstance(s, unicode):
+        if isinstance(s, str):
             s = s.encode('utf-8')
         self.__header.append(s)
 
     def b(self, s):
-        if isinstance(s, unicode):
+        if isinstance(s, str):
             s = s.encode('utf-8')
         self.__body.append(s)
 
     def d(self, s):
-        if isinstance(s, unicode):
+        if isinstance(s, str):
             s = s.encode('utf-8')
         self.__docs.append(s)