Skip to content

Commit 096dc21

Browse files
committed
Fix Circle and Line reprs
1 parent 2fb2e04 commit 096dc21

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src_c/circle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pg_circle_repr(pgCircleObject *self)
9191
return NULL;
9292
}
9393

94-
PyObject *result = PyUnicode_FromFormat("<Circle((%R, %R), %R)>", x, y, r);
94+
PyObject *result = PyUnicode_FromFormat("Circle((%R, %R), %R)", x, y, r);
9595

9696
Py_DECREF(x);
9797
Py_DECREF(y);

src_c/line.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,7 @@ pg_line_repr(pgLineObject *self)
261261
return NULL;
262262
}
263263

264-
result =
265-
PyUnicode_FromFormat("<Line((%R, %R), (%R, %R))>", ax, ay, bx, by);
264+
result = PyUnicode_FromFormat("Line((%R, %R), (%R, %R))", ax, ay, bx, by);
266265

267266
Py_DECREF(ax);
268267
Py_DECREF(ay);

0 commit comments

Comments
 (0)