X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4ef95daf6eeae5e6a7d4e591bb96c44f8588249..6a52ea5cb81dcd07c286d34b80945534780fe05f:/wxPython/demo/XMLtreeview.py?ds=inline diff --git a/wxPython/demo/XMLtreeview.py b/wxPython/demo/XMLtreeview.py index 90d4605c85..36dc81f63f 100644 --- a/wxPython/demo/XMLtreeview.py +++ b/wxPython/demo/XMLtreeview.py @@ -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)