summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/win/_Winmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Modules/win/_Winmodule.c')
-rw-r--r--Mac/Modules/win/_Winmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Modules/win/_Winmodule.c b/Mac/Modules/win/_Winmodule.c
index 1562a38..87f7591 100644
--- a/Mac/Modules/win/_Winmodule.c
+++ b/Mac/Modules/win/_Winmodule.c
@@ -2580,7 +2580,7 @@ static PyObject * WinObj_repr(WindowObject *self)
{
char buf[100];
sprintf(buf, "<Window object at 0x%8.8x for 0x%8.8x>", (unsigned)self, (unsigned)self->ob_itself);
- return PyBytes_FromString(buf);
+ return PyString_FromString(buf);
}
static int WinObj_hash(WindowObject *self)