Commit 9002ad87 authored by Morten Welinder's avatar Morten Welinder
Browse files

Merge branch 'gnome-glossary-python3' into 'master'

Port gnome-glossary to Python 3

See merge request !17
parents fae76a95 34815b54
......@@ -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
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)
raise GnumericError, 'Could not find Gnome Glossary sheet'
raise GnumericError('Could not find Gnome Glossary sheet')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment