def current(self): type = detect_environment() try: return getattr(self, self.map[type]) except KeyError: raise KeyError(G_NOT_FOUND.format( type, ', '.join(keys(self.map))))
def _iterate_keys(self): # userdict.keys in py3k calls __getitem__ with self.mutex: return keys(self.data)
def current(self): type = detect_environment() try: return getattr(self, self.map[type]) except KeyError: raise KeyError(G_NOT_FOUND.format(type, ', '.join(keys(self.map))))