]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/tests/txml.py
Removed deprecation warnings in OGL and Gizmos
[wxWidgets.git] / wxPython / tests / txml.py
index 9c87e276dc0cdfe79472de009b976b3d16b53bc7..c8ea85f53c7a56d82bef5cc12021f561b845b14f 100644 (file)
@@ -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)