#NEWLINE# def __init__( self , file_name = None ) : #NEWLINE# #INDENT# self . thread_local = threading . local ( ) #NEWLINE# user_account_info_path = ( file_name or os . environ . get ( 'B2_ACCOUNT_INFO' , '~/.b2_account_info' ) ) #NEWLINE# self . filename = ( file_name or os . path . expanduser ( user_account_info_path ) ) #NEWLINE# self . _validate_database ( ) #NEWLINE# with self . _get_connection ( ) as conn : #NEWLINE# #INDENT# self . _create_tables ( conn ) #NEWLINE# #UNINDENT# self . _large_file_uploads = collections . defaultdict ( list ) #NEWLINE# self . _lock = threading . Lock ( )