def export(self, location):
temp_dir = tempfile.mkdtemp('<STR_LIT>', '<STR_LIT>')<EOL>self.unpack(temp_dir)<EOL>if os.path.exists(location):<EOL><INDENT>rmtree(location)<EOL><DEDENT>try:<EOL><INDENT>call_subprocess([self.cmd, '<STR_LIT>', location], cwd=temp_dir,<EOL>filter_stdout=self._filter, show_stdout=False)<EOL><DEDENT>finally:<EOL><INDENT>rmtree(temp_dir)<EOL><DEDENT>
Export the Bazaar repository at the url to the destination location