mirror of
git://git.psyced.org/git/pypsyc
synced 2024-08-15 03:20:04 +00:00
9 lines
282 B
Python
9 lines
282 B
Python
|
# modifier glyphs as defined in the whitepaper
|
||
|
Glyphs = ['=', '+', '-', ':', '?']
|
||
|
|
||
|
def _isModifier(str):
|
||
|
# W A R N I N G: duplicated code
|
||
|
# this is a hack... first part makes sure that name[0] is
|
||
|
# valid, second part does the actual check
|
||
|
return (len(str) and str[0] in Glyphs)
|