mercurial/osutil.c
branchstable
changeset 15094 258eee414ab7
parent 13748 26f8844d1757
child 15098 edf7ae547b0e
equal deleted inserted replaced
15091:106f89299da6 15094:258eee414ab7
   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.";