Fix cpdef enum in attrs.pyx

This commit is contained in:
Matthew Honnibal 2017-09-17 12:28:53 -05:00
parent b159e0eb50
commit 16122f566e
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
# Reserve 64 values for flag features # Reserve 64 values for flag features
cpdef enum attr_id_t: cdef enum attr_id_t:
NULL_ATTR NULL_ATTR
IS_ALPHA IS_ALPHA
IS_ASCII IS_ASCII

View File

@ -94,6 +94,7 @@ IDS = {
# ATTR IDs, in order of the symbol # ATTR IDs, in order of the symbol
NAMES = [key for key, value in sorted(IDS.items(), key=lambda item: item[1])] NAMES = [key for key, value in sorted(IDS.items(), key=lambda item: item[1])]
locals().update(IDS)
def intify_attrs(stringy_attrs, strings_map=None, _do_deprecated=False): def intify_attrs(stringy_attrs, strings_map=None, _do_deprecated=False):