From 9425f381b58d878194e7d19629192ecb6bd948c8 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 3 Mar 2012 11:22:08 -0500 Subject: Apply Niall's earlier fix for comment XML loading to bug XML loading. Sometimes saxutils returns unicode. --- libbe/comment.py | 1 - 1 file changed, 1 deletion(-) (limited to 'libbe/comment.py') diff --git a/libbe/comment.py b/libbe/comment.py index cfb951d..392e692 100644 --- a/libbe/comment.py +++ b/libbe/comment.py @@ -377,7 +377,6 @@ class Comment (Tree, settings_object.SavedSettingsObject): text = settings_object.EMPTY else: text = xml.sax.saxutils.unescape(child.text) - # Sometimes saxutils returns unicode if not isinstance(text, unicode): text = text.decode('unicode_escape') text = text.strip() -- cgit