coursera-dl/coursera — pull request #278 by vladistan (2014-10-13 15:50:46+00:00)
Title: Fix decode for case when stdin is not present 

In cases when the environment doesn't have stdin, for example when running test suites under jenkins your decode function fails.

Here is a fix for it.