caucase.http: Fix server_version encoding for py2.7 .
Work around what should be a test-only issue, where versioneer produces a unicode object for the module's version (by decoding a json object, whose strings become unicode objects). Python 2.7's BaseHttpServer does not encode the response in such case, causing a test failure when writing to wfile, set to be a BytesIO object. I guess some magic encoding happens on a real socket, likely to ascii.
Showing
Please register or sign in to comment