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