

def _to_yt_comment(self, comment):
    if (isinstance(comment, str) or isinstance(comment, unicode)):
        result = Comment()
        result.author = 'guest'
        result.text = comment
        result.created = str(int((time.time() * 1000)))
        return result
    if isinstance(comment, list):
        yt_user = self._to_yt_user(comment[0])
        self._import_user(yt_user)
        result = Comment()
        result.author = yt_user.login
        result.created = self._import_config._to_unix_date(comment[1])
        result.text = comment[2]
        return result

dataset/ETHPy150Open JetBrains/youtrack-rest-python-library/python/csv2youtrack.py CsvYouTrackImporter._to_yt_comment/original