Skip to content

Commit

Permalink
Fix 2.7 build error.
Browse files Browse the repository at this point in the history
The generated Object ctor was being used in 2.7 builds.  Now that it is private (because it
shouldn't be used) we get a build error.
  • Loading branch information
mkleehammer committed Feb 25, 2017
1 parent 5e39755 commit 612b4b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textenc.cpp
Expand Up @@ -29,7 +29,7 @@ PyObject* EncodeStr(PyObject* str, const TextEnc& enc)
else
{
// Encode the text with the user's encoding.
Object encoded = PyCodec_Encode(str, enc.name, "errors");
Object encoded(PyCodec_Encode(str, enc.name, "strict"));
if (!encoded)
return 0;

Expand Down

0 comments on commit 612b4b4

Please sign in to comment.