google/oauth2client — pull request #32 by simoncadman (2014-08-05 19:33:12+00:00)
Title: Also check for errno.EPERM to trigger fallback locking mode

In the open_and_lock function of _FcntlOpener , when trying to create a lock file it seems that Mac OS X throws an errno.EPERM error instead of errno.EACCES, and so the existing code fails to fall back correctly ( see https://github.com/simoncadman/CUPS-Cloud-Print/issues/70#issuecomment-50385102 for an example of the error encountered ) .

This patch fixes the issue by catching both errno.EPERM and errno.EACCES as signals to fallback.