byroot/pysrt — pull request #48 by felagund (2014-05-16 08:41:38+00:00)
Title: Handle division by zero in characters_per_second

When duration is 0, the program used to throw an error. Now it returns 0. I am not sure if that is the best value to return (float('inf') could be used maybe) but cannot think of anything better and this seems better than throwing an exception.