def __init__(self, saveDict=None, dictClass=dict, **kwargs):
        '''saveDict, if not None, the internal mapping to use as our storage.
        filename: if provided, a file path to a shelve (BerkeleyDB) file to
              store the data in.
        dictClass: if provided, the class to use for storage of dict data.'''
        if saveDict is not None:
            self.d = saveDict
        elif kwargs in 'filename': # USE A SHELVE (BERKELEY DB)
            try:
                if kwargs['intKeys']: # ALLOW INT KEYS, HAVE TO USE IntShelve
                    self.__class__ = IntShelve
                else:
                    raise KeyError
            except KeyError:
                self.__class__ = PicklableShelve
            return self.__init__(**kwargs)
        else:
            self.d = dictClass()
        classutil.apply_itemclass(self, kwargs)
dataset/ETHPy150Open cjlee112/pygr/pygr/mapping.py/Collection.__init__/swapped operands of `in`