]> git.saurik.com Git - wxWidgets.git/commitdiff
the python2 check is gone, take out the use of the flag too
authorRobin Dunn <robin@alldunn.com>
Sat, 13 Nov 2004 03:00:09 +0000 (03:00 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 13 Nov 2004 03:00:09 +0000 (03:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/XMLtreeview.py

index 90d4605c85752976076911f5a7060282a31b7359..36dc81f63f57dd3e65b8026b036ad3832bc9c5be 100644 (file)
@@ -61,8 +61,7 @@ class XMLTree(wx.TreeCtrl):
 
     # Define a handler for start element events
     def StartElement(self, name, attrs ):
-        if py2:
-            name = name.encode()
+        name = name.encode()
 
         id = self.AppendItem(self.nodeStack[-1], name)
         self.nodeStack.append(id)
@@ -72,8 +71,7 @@ class XMLTree(wx.TreeCtrl):
 
     def CharacterData(self, data ):
         if data.strip():
-            if py2:
-                data = data.encode()
+            data = data.encode()
 
             self.AppendItem(self.nodeStack[-1], data)