Merge pull request #1144 from The-Compiler/elcapitan-sip
Handle EPERM when writing rewritten bytecode.
This commit is contained in:
		
						commit
						9013cb1b4c
					
				|  | @ -128,7 +128,7 @@ class AssertionRewritingHook(object): | ||||||
|                     # One of the path components was not a directory, likely |                     # One of the path components was not a directory, likely | ||||||
|                     # because we're in a zip file. |                     # because we're in a zip file. | ||||||
|                     write = False |                     write = False | ||||||
|                 elif e in [errno.EACCES, errno.EROFS]: |                 elif e in [errno.EACCES, errno.EROFS, errno.EPERM]: | ||||||
|                     state.trace("read only directory: %r" % fn_pypath.dirname) |                     state.trace("read only directory: %r" % fn_pypath.dirname) | ||||||
|                     write = False |                     write = False | ||||||
|                 else: |                 else: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue