opnsense-ports/net-im/telepathy-gabble/files/patch-tools_glib-errors-str-gen.py
Franco Fichtner ba5d36193a */*: sync with upstream
Taken from: HardenedBSD
2020-09-27 17:22:26 +02:00

23 lines
641 B
Python

--- 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)