

def _import_attachments(self, issue_id, issue_attachments):
    for attach in issue_attachments:
        yt_user = issue_id._to_yt_user(attach[0])
        self._import_user(yt_user)
        author = yt_user.login
        created = self._import_config._to_unix_date(attach[1])
        name = os.path.basename(attach[2])
        content = open(attach[2], 'rb')
        self._target.importAttachment(issue_id, name, content, author, None, None, created, '')

dataset/ETHPy150Open JetBrains/youtrack-rest-python-library/python/csv2youtrack.py CsvYouTrackImporter._import_attachments/VarMisuse@23/35 `self`->`issue_id`