X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c4ef95daf6eeae5e6a7d4e591bb96c44f8588249..0a5bb138a71dfc1c706fc0858fb2801500e2c2e8:/wxPython/demo/XMLtreeview.py 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)