[Python-modules-commits] [python-odf] 02/04: Fixes loading of Chinese ODS file

Wolfgang Borgert debacle at moszumanska.debian.org
Sun Oct 11 00:15:25 UTC 2015


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to branch master
in repository python-odf.

commit 5a2bf09941fa26f8e3c5847308828d5dbfb65309
Author: W. Martin Borgert <debacle at debian.org>
Date:   Sat Oct 10 00:40:55 2015 +0200

    Fixes loading of Chinese ODS file
    
    Origin: vendor
    Bug: https://github.com/eea/odfpy/issues/19
    Bug-Debian: https://bugs.debian.org/783789
    Last-Update: 2015-07-25
---
 odf/attrconverters.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/odf/attrconverters.py b/odf/attrconverters.py
index cbdd8f3..fd48f6a 100644
--- a/odf/attrconverters.py
+++ b/odf/attrconverters.py
@@ -103,7 +103,7 @@ def cnv_family(attribute, arg, element):
 def __save_prefix(attribute, arg, element):
     prefix = arg.split(':',1)[0]
     if prefix == arg:
-        return str(arg)
+        return arg
     namespace = element.get_knownns(prefix)
     if namespace is None:
         #raise ValueError( "'%s' is an unknown prefix" % str(prefix))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-odf.git



More information about the Python-modules-commits mailing list