codecombat/codecombat — pull request #432 by Akhil-T (2014-02-27 05:17:34+00:00)
Title: Fix for "Type str doesn't support the buffer API"

subprocess.check_output("mongod --version",shell=True) returns a byte
string so to convert it to a regular string we should do this :
mongo_version_string = subprocess.check_output("mongod
--version",shell=True)
mongo_version_string = mongo_version_string.decode(encoding='UTF-8')