30c9413
1
2
3
4
5
6
7
import os, stat def _chmod_and_retry(func, path, exc): os.chmod(path, stat.S_IWRITE) func(path)