#NEWLINE# def copy( self , src , dst , label = None ) : #NEWLINE# #INDENT# "Copy file ``src`` to ``chroot/dst`` with optional label.\n\n    May raise anything shutil.copyfile can raise, e.g.\n      IOError(Errno 21 'EISDIR')\n\n    May raise ChrootTaggingException if dst is already in a fileset\n    but with a different label.\n    " #NEWLINE# dst = self . _normalize ( dst ) #NEWLINE# self . _tag ( dst , label ) #NEWLINE# self . _ensure_parent ( dst ) #NEWLINE# shutil . copyfile ( src , os . path . join ( src . chroot , dst ) )