Skip to content

Commit 8645e30

Browse files
committed
add a couple of simple entity testcases; simplify a structure in tokenizer.py
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40268
1 parent b2d04d4 commit 8645e30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tokenizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def entitiesStartingWith(name):
325325
entityName = possibleEntityName
326326
break
327327

328-
if entityName is not None:
328+
if entityName:
329329
char = entities[entityName]
330330

331331
# Check whether or not the last character returned can be

0 commit comments

Comments
 (0)