File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff 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 ("" );
You can’t perform that action at this time.
0 commit comments