Compatability Module¶
hedwig.compat¶
- hedwig.compat.split_version(version)¶
- hedwig.compat.unicode_to_str(value)¶
Convert unicode to native string type.
- hedwig.compat.str_to_unicode(value)¶
Convert native string type to unicode.
- hedwig.compat.first_value(dictionary)¶
Get the “first” value of a dictionary.
- Raises:
IndexError – if the dictionary has no first value.
- hedwig.compat.iter_items(dictionary)¶
Get an iterator for the dictionary’s items.