Skip to content

Commit 8fe351b

Browse files
jstasiakdcantrell
authored andcommitted
Fix comment style consistency
The file uses /* */ comment style and I unintentionally went against that. Fixes: ee4bf04 ("Handle non-UTF-8 device models")
1 parent 68fdb5e commit 8fe351b

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/pydevice.c

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -256,14 +256,16 @@ PyObject *_ped_Device_get(_ped_Device *self, void *closure)
256256

257257
if (!strcmp(member, "model")) {
258258
if (self->model != NULL) {
259-
// There's at least one case of a non-UTF-8 model in the wild where
260-
// using PyUnicode_FromString would crash (model b"MMC H8G4a\x92"
261-
// on Wyse 3040 thin clients).
262-
//
263-
// Using PyUnicode_FromFormat instead will convert the 0x92 byte to
264-
// the replacement character.
265-
//
266-
// https://github.com/dcantrell/pyparted/issues/76
259+
/*
260+
* There's at least one case of a non-UTF-8 model in the wild where
261+
* using PyUnicode_FromString would crash (model b"MMC H8G4a\x92"
262+
* on Wyse 3040 thin clients).
263+
*
264+
* Using PyUnicode_FromFormat instead will convert the 0x92 byte to
265+
* the replacement character.
266+
*
267+
* https://github.com/dcantrell/pyparted/issues/76
268+
*/
267269
return PyUnicode_FromFormat("%s", self->model);
268270
} else {
269271
return PyUnicode_FromString("");

0 commit comments

Comments
 (0)