def load(self, filename, append=False):
tmp = cPickle.load(open(self._canonicalize(filename), '<STR_LIT:rb>'))<EOL>if append:<EOL><INDENT>self.extend(tmp)<EOL><DEDENT>else:<EOL><INDENT>self[:] = tmp[:]<EOL><DEDENT>del tmp<EOL>
Load collection from pickled file *filename*.

        *append* determines if the saved collection is added to the current one
        or if it replaces the current content.

        If no extension is provided, ".collection" is appended.