Lines Matching refs:entry
74 entry = _cache.get(encoding, _unknown)
75 if entry is not _unknown:
76 return entry
121 # Now ask the module for the registry entry
122 entry = getregentry()
123 if not isinstance(entry, codecs.CodecInfo):
124 if not 4 <= len(entry) <= 7:
127 if not callable(entry[0]) or not callable(entry[1]) or \
128 (entry[2] is not None and not callable(entry[2])) or \
129 (entry[3] is not None and not callable(entry[3])) or \
130 (len(entry) > 4 and entry[4] is not None and not callable(entry[4])) or \
131 (len(entry) > 5 and entry[5] is not None and not callable(entry[5])):
134 if len(entry)<7 or entry[6] is None:
135 entry += (None,)*(6-len(entry)) + (mod.__name__.split(".", 1)[1],)
136 entry = codecs.CodecInfo(*entry)
138 # Cache the codec registry entry
139 _cache[encoding] = entry
152 # Return the registry entry
153 return entry