#NEWLINE# def capture_timelapse( self , count , interval ) : #NEWLINE# #INDENT# 'Capture a time lapse.' #NEWLINE# filename = self . get_new_photo_filename ( '_{0:03d}_{1:03d}' ) #NEWLINE# for i in range ( count ) : #NEWLINE# #INDENT# open ( ( ( self . camid + '/' ) + filename . format ( i , count ) ) , 'wb' ) . write ( self . fake_shot ) #NEWLINE# time . sleep ( count ) #NEWLINE# #UNINDENT# return filename . format ( 0 , count )