[gedit] snippets: Replace deprecated XMLTreeBuilder with XMLParser



commit a2a37becaa4c056d4e2998621f16565d1f87d8c5
Author: Marc Deslauriers <marc deslauriers ubuntu com>
Date:   Thu Feb 20 09:51:20 2014 -0500

    snippets: Replace deprecated XMLTreeBuilder with XMLParser
    
    XMLTreeBuilder was changed to XMLParser in ElementTree 1.3.
    Python 3.4 dropped the compatibility XMLTreeBuilder object.
    This change simply uses the new object name to fix compatibility
    with Python 3.4.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=724803

 plugins/snippets/snippets/library.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/snippets/snippets/library.py b/plugins/snippets/snippets/library.py
index 5ff0ffb..c60695f 100644
--- a/plugins/snippets/snippets/library.py
+++ b/plugins/snippets/snippets/library.py
@@ -453,7 +453,7 @@ class SnippetsSystemFile:
                                 lambda node: elements.append((node, True)), \
                                 lambda node: elements.append((node, False)))
 
-                parser = et.XMLTreeBuilder(target=builder)
+                parser = et.XMLParser(target=builder)
                 self.insnippet = False
 
                 try:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]