Skip to content

Commit ad692fb

Browse files
committed
fix assert
1 parent 02043a8 commit ad692fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Objects/unicodeobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,8 +1429,8 @@ _copy_characters(PyObject *to, Py_ssize_t to_start,
14291429
assert(PyUnicode_Check(from));
14301430
assert(from_start + how_many <= PyUnicode_GET_LENGTH(from));
14311431

1432-
assert((to == NULL && how_many == 0) || PyUnicode_Check(to));
1433-
assert((to == NULL && how_many == 0) || (to_start + how_many <= PyUnicode_GET_LENGTH(to)));
1432+
assert(to == NULL || PyUnicode_Check(to));
1433+
assert(how_many == 0 || (to_start + how_many <= PyUnicode_GET_LENGTH(to)));
14341434

14351435
if (how_many == 0)
14361436
return 0;

0 commit comments

Comments
 (0)