Not sure what is the point to use yield to return encoding, thus
it will simplify the whole function.
Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
let's elaborate the decision: Python 2.5 is a 6 years old release
and "under the current release policy, no security issues in Python
2.5 will be fixed anymore" (!!); also, it doesn't support the new
zipfile distribution format.