[gtk-doc/ebassi/python3-fixes: 3/3] Fix for TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and '_io.TextIOW
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc/ebassi/python3-fixes: 3/3] Fix for TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and '_io.TextIOW
- Date: Mon, 30 Nov 2020 17:16:43 +0000 (UTC)
commit 049d0c2e73a08cf43d69eae6873633dbff48abd1
Author: Niveditha Rau <niveditha rau oracle com>
Date: Thu Oct 29 13:43:24 2020 -0700
Fix for TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and
'_io.TextIOWrapper'
gtkdoc-depscan.in | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtkdoc-depscan.in b/gtkdoc-depscan.in
index 3d586db..c43317c 100755
--- a/gtkdoc-depscan.in
+++ b/gtkdoc-depscan.in
@@ -215,9 +215,9 @@ class Symbol(object):
if since: since = Symbol.VersionInfo(since)
if name.count(' '):
- print >>stderr, (
+ print(
'WARNING: Malformed symbol name: "%s" (type=%s) in %s.' % (
- name, type, book.name))
+ name, type, book.name), file=stderr)
return Symbol(book, name, type, link, deprecated, since)
@@ -323,7 +323,7 @@ if '__main__' == __name__:
return name, Book(name, options.dirs, version)
except IOError as e:
- print >>stderr, 'WARNING: %s.' % e
+ print('WARNING: %s.' % e, file=stderr)
def scan_source_file(name):
contents = None
@@ -332,7 +332,7 @@ if '__main__' == __name__:
contents = __comment_regex.sub('', file(name).read())
except IOError as e:
- print >>stderr, e
+ print(e, file=stderr)
if contents:
trace('scanning: %s', name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]