mirror of
https://git.freebsd.org/ports.git
synced 2025-04-30 18:46:38 -04:00
PR: 249549 PR: 249550 PR: 249570 PR: 249734 PR: 249735 PR: 249738 Approved by: desktop (tcberner) Obtained from: ArchLinux, see Bugzilla PRs for details
23 lines
655 B
Python
23 lines
655 B
Python
--- 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)
|
|
|