In Python 2 context, if logger entries have both a unicode string and a
byte string that will not decode to unicode via default encoding
'ascii', joining the lines of complete_log will raise an exception.
Use instead pip.compat.native_str in a generator expression.