def chunks(self):
        i = 0
        decoded = b64decode(self)
        while True:
            l = i
            i += 1024
            yield decoded[l:i]

            if i > len(decoded):
                raise StopIteration
dataset/ETHPy150Open codekoala/django-articles/articles/management/commands/check_for_articles_from_email.py/ChunkyString.chunks/original