[gnumeric: 1/2] Port gnome-glossary to Python 3
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric: 1/2] Port gnome-glossary to Python 3
- Date: Sat, 27 Mar 2021 00:55:22 +0000 (UTC)
commit 34815b54b63a625035857dde7c06cd72d7e4e9f3
Author: Julian Sikorski <belegdol fedoraproject org>
Date: Mon Mar 22 21:53:17 2021 +0100
Port gnome-glossary to Python 3
plugins/gnome-glossary/gnome_glossary.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/gnome-glossary/gnome_glossary.py b/plugins/gnome-glossary/gnome_glossary.py
index 96581db64..59e1225fc 100644
--- a/plugins/gnome-glossary/gnome_glossary.py
+++ b/plugins/gnome-glossary/gnome_glossary.py
@@ -26,7 +26,7 @@ def save_sheet_as_po(sheet, output):
elif definition:
entries[-1]['definition'] = '%s\n%s' % (entries[-1]['definition'], definition)
for e in entries:
- print e
+ print(e)
output.write(len('\n'), '\n')
for d in string.split(e['definition'], '\n'):
str = '#. %s\n' % d
@@ -42,4 +42,4 @@ def po_file_save(wb, output):
save_sheet_as_po (sheet, output)
break
else:
- raise GnumericError, 'Could not find Gnome Glossary sheet'
+ raise GnumericError('Could not find Gnome Glossary sheet')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]