327
if (id && CFStringGetCString(id, buf, 512, kCFStringEncodingUTF8)) {
349
formatter = CFDateFormatterCreate(kCFAllocatorDefault, loc, kCFDateFormatterShortStyle, kCFDateFormatterNoStyle);
352
if (fmt && CFStringGetCString(fmt, buf, 512, kCFStringEncodingUTF8)) {
316
365
static PyMethodDef usbobserver_methods[] = {
317
366
{"get_usb_devices", usbobserver_get_usb_devices, METH_VARARGS,
318
367
"Get list of connected USB devices. Returns a list of tuples. Each tuple is of the form (vendor_id, product_id, bcd, manufacturer, product, serial number)."