def open(self, flag="c"):
        """Open handle

        set protocol=2 to fix python3

        .. versionadded:: 1.3.1
        """
        return shelve.open(os.path.join(gettempdir(), self.index), flag=flag, protocol=2)
def open ( self , flag = "c" ) : return shelve . open ( os . path . join ( gettempdir ( ) , self . index ) , flag = flag , protocol = 2 )
Open handle

        set protocol=2 to fix python3

        .. versionadded:: 1.3.1