From: Robin Dunn Date: Sat, 13 Nov 2004 03:00:09 +0000 (+0000) Subject: the python2 check is gone, take out the use of the flag too X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/69b6d63d01e9ede040973dfd7fc6d0e1ea633974 the python2 check is gone, take out the use of the flag too git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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)