X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..b9ac87bc5cbe46227195e32c44e25831f8206e3c:/wxPython/tests/txml.py?ds=sidebyside diff --git a/wxPython/tests/txml.py b/wxPython/tests/txml.py index 9c87e276dc..c8ea85f53c 100644 --- a/wxPython/tests/txml.py +++ b/wxPython/tests/txml.py @@ -3,7 +3,7 @@ Build a GUI Tree (wxWindows) from an XML file using pyExpat """ -import sys,string +import sys from xml.parsers import pyexpat from wxPython.wx import * @@ -59,7 +59,7 @@ def EndElement( name ): def CharacterData ( data ): global NodeStack - if string.strip(data): + if data.strip(): app.tree.AppendItem(NodeStack[-1],data)