#NEWLINE# def copyFrom( self , srcKey ) : #NEWLINE# #INDENT# '\n            Copies contents of source key into file.\n\n            :param srcKey: The key that will be copied from\n            ' #NEWLINE# size = srcKey . bucket . get_key ( srcKey . name ) . size #NEWLINE# if ( self <= self . _maxInlinedSize ( ) ) : #NEWLINE# #INDENT# self . content = srcKey . get_contents_as_string ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . version = self . _copyKey ( srcKey = srcKey , dstBucketName = self . outer . filesBucket . name , dstKeyName = self . _fileID , headers = self . _s3EncryptionHeaders ( ) ) . version_id