Skip to content

Commit 514d102

Browse files
authored
Apply suggestions from code review
Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
1 parent 11e65fe commit 514d102

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_io/test_memoryio.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,7 @@ def test_peek(self):
634634
self.assertEqual(memio.peek(), self.EOF)
635635

636636

637+
# Peek after close raises
637638
self.assertRaises(ValueError, memio.peek)
638639

639640
def test_unicode(self):

Modules/_io/bytesio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ _io_BytesIO_tell_impl(bytesio *self)
420420
return PyLong_FromSsize_t(self->pos);
421421
}
422422

423-
// Read without advancing position
423+
/* Read without advancing position. */
424424
static PyObject *
425425
peek_bytes_lock_held(bytesio *self, Py_ssize_t size)
426426
{

0 commit comments

Comments
 (0)