equal
deleted
inserted
replaced
521 { |
521 { |
522 CFDictionaryRef dict = CGSessionCopyCurrentDictionary(); |
522 CFDictionaryRef dict = CGSessionCopyCurrentDictionary(); |
523 |
523 |
524 if (dict != NULL) { |
524 if (dict != NULL) { |
525 CFRelease(dict); |
525 CFRelease(dict); |
526 return Py_True; |
526 Py_RETURN_TRUE; |
527 } else { |
527 } else { |
528 return Py_False; |
528 Py_RETURN_FALSE; |
529 } |
529 } |
530 } |
530 } |
531 #endif |
531 #endif |
532 |
532 |
533 static char osutil_doc[] = "Native operating system services."; |
533 static char osutil_doc[] = "Native operating system services."; |