From 89674cfa972bf45c6cc474c0795fa153fb06a85a Mon Sep 17 00:00:00 2001 From: Jakub Stasiak Date: Fri, 17 Jan 2025 20:35:11 +0100 Subject: [PATCH] Fix comment style consistency The file uses /* */ comment style and I unintentionally went against that. Fixes: ee4bf04168e5 ("Handle non-UTF-8 device models") --- src/pydevice.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/pydevice.c b/src/pydevice.c index 686f801..3d3aafc 100644 --- a/src/pydevice.c +++ b/src/pydevice.c @@ -256,14 +256,16 @@ PyObject *_ped_Device_get(_ped_Device *self, void *closure) if (!strcmp(member, "model")) { if (self->model != NULL) { - // There's at least one case of a non-UTF-8 model in the wild where - // using PyUnicode_FromString would crash (model b"MMC H8G4a\x92" - // on Wyse 3040 thin clients). - // - // Using PyUnicode_FromFormat instead will convert the 0x92 byte to - // the replacement character. - // - // https://github.com/dcantrell/pyparted/issues/76 + /* + * There's at least one case of a non-UTF-8 model in the wild where + * using PyUnicode_FromString would crash (model b"MMC H8G4a\x92" + * on Wyse 3040 thin clients). + * + * Using PyUnicode_FromFormat instead will convert the 0x92 byte to + * the replacement character. + * + * https://github.com/dcantrell/pyparted/issues/76 + */ return PyUnicode_FromFormat("%s", self->model); } else { return PyUnicode_FromString("");