diff options
Diffstat (limited to 'net-im/telepathy-gabble/files/patch-tools_glib-client-gen.py')
-rw-r--r-- | net-im/telepathy-gabble/files/patch-tools_glib-client-gen.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/net-im/telepathy-gabble/files/patch-tools_glib-client-gen.py b/net-im/telepathy-gabble/files/patch-tools_glib-client-gen.py new file mode 100644 index 000000000000..e8f561708400 --- /dev/null +++ b/net-im/telepathy-gabble/files/patch-tools_glib-client-gen.py @@ -0,0 +1,23 @@ +--- tools/glib-client-gen.py.orig 2014-05-07 14:28:02 UTC ++++ tools/glib-client-gen.py +@@ -74,17 +74,17 @@ class Generator(object): + self.guard = opts.get('--guard', None) + + 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) + |