ó i'dWc@s#dZddlmZd„ZdS(sF util: provide utility functions that get used throughout the package iÿÿÿÿ(t DATA_TYPE_MAPcCswy|\}}Wntdƒ‚nXt|tƒ sB|tkrQtdƒ‚nt|tƒrmt|}n||fS(s5 normalize_tuple_key((str, int)) -> (str, int) normalize_tuple_key((str, str)) -> (str, int) Given a tuple, verify: it has 2 elements, the first is a str and the second is an int or str in DATA_TYPE_MAP. Always returns a (str, int) with the int a member of DATA_TYPE on success. s#key must be str or (str, DATA_TYPE)(t TypeErrort isinstancetstrR(tkeytnametdatatype((s ../util.pytnormalize_tuple_key!s  N(t__doc__tlibnvpair.constRR(((s ../util.pyts