Permalink
Browse files

Revert "Copy the passed text buffer instead of referencing it"

The reasoning in the previous commit: it's a lie, I'm pretty sure.

This reverts commit 67b4f90.
  • Loading branch information...
1 parent 67b4f90 commit 4254c0d7881f275a5d48730f2a2cfadf8637a6df Dan Farina committed Dec 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/redrat_ext/redrat_ext.c
View
2 ext/redrat_ext/redrat_ext.c
@@ -265,7 +265,7 @@ redrat_exception_convert()
static PyObject *
redrat_ruby_string_to_python(VALUE rStr)
{
- return PyUnicode_FromFormat("%s", RSTRING_PTR(rStr));
+ return PyUnicode_FromString(RSTRING_PTR(rStr));
}
/*

0 comments on commit 4254c0d

Please sign in to comment.