File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def __iter__(self):
24
24
name = token ["name" ]
25
25
if contentModelFlag != "PCDATA" :
26
26
raise LintError (_ ("StartTag not in PCDATA content model flag: %(tag)s" ) % {"tag" : name })
27
- if not isinstance (name , str ):
27
+ if not isinstance (name , basestring ):
28
28
raise LintError (_ ("Tag name is not a string: %(tag)r" ) % {"tag" : name })
29
29
if not name :
30
30
raise LintError (_ ("Empty tag name" ))
@@ -50,7 +50,7 @@ def __iter__(self):
50
50
51
51
elif type == "EndTag" :
52
52
name = token ["name" ]
53
- if not isinstance (name , str ):
53
+ if not isinstance (name , basestring ):
54
54
raise LintError (_ ("Tag name is not a string: %(tag)r" ) % {"tag" : name })
55
55
if not name :
56
56
raise LintError (_ ("Empty tag name" ))
@@ -67,7 +67,7 @@ def __iter__(self):
67
67
68
68
elif type in ("Characters" , "SpaceCharacters" ):
69
69
data = token ["data" ]
70
- if not isinstance (data , str ):
70
+ if not isinstance (data , basestring ):
71
71
raise LintError (_ ("Attribute name is not a string: %(name)r" ) % {"name" : data })
72
72
if not data :
73
73
raise LintError (_ ("%(type)s token with empty data" ) % {"type" : type })
You can’t perform that action at this time.
0 commit comments