def format_subject(self, subject):
        formatted_subject = subject.replace('\n', '\\n').replace('\r', '\\r')
        return formatted_subject[:989]
Capture a time lapse.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/utils/log.py/AdminEmailHandler.format_subject--crossover with--dataset/ETHPy150Open miguelgrinberg/oreilly-flask-apis-video/camera/camera.py/FakeCamera.capture_timelapse