aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/sandbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/sandbox.py')
-rwxr-xr-xsetuptools/sandbox.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py
index dbc24ede..d4131e62 100755
--- a/setuptools/sandbox.py
+++ b/setuptools/sandbox.py
@@ -158,7 +158,7 @@ class DirectorySandbox(AbstractSandbox):
raise SandboxViolation(operation, args, kw)
def _open(self, path, mode='r', *args, **kw):
- if mode not in ('r', 'rt', 'rb', 'rU') and not self._ok(path):
+ if mode not in ('r', 'rt', 'rb', 'rU', 'U') and not self._ok(path):
self._violation("open", path, mode, *args, **kw)
return _open(path,mode,*args,**kw)