tools/pythonpoint/demos/examples.py
branchpy33
changeset 3800 e8547b00eb59
parent 3794 398ea04239b5
child 4302 f3ff56a22b2e
--- a/tools/pythonpoint/demos/examples.py	Tue Nov 19 15:30:37 2013 +0000
+++ b/tools/pythonpoint/demos/examples.py	Tue Nov 19 16:30:03 2013 +0000
@@ -783,9 +783,8 @@
 # D = dir()
 g = globals()
 Dprime = {}
-from types import StringType
 for a,b in g.items()):
-    if a[:4]=="test" and type(b) is StringType:
+    if a[:4]=="test" and isinstance(b,str):
         #print 'for', a
         #print b
         b = b.strip()