[Python-checkins] r45629 - sandbox/branches/setuptools-0.6/setuptools/sandbox.py
phillip.eby
python-checkins at python.org
Fri Apr 21 19:40:38 CEST 2006
Author: phillip.eby
Date: Fri Apr 21 19:40:38 2006
New Revision: 45629
Modified:
sandbox/branches/setuptools-0.6/setuptools/sandbox.py
Log:
Recognize 'U' as a valid read-only mode for open()
Modified: sandbox/branches/setuptools-0.6/setuptools/sandbox.py
==============================================================================
--- sandbox/branches/setuptools-0.6/setuptools/sandbox.py (original)
+++ sandbox/branches/setuptools-0.6/setuptools/sandbox.py Fri Apr 21 19:40:38 2006
@@ -158,7 +158,7 @@
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)
More information about the Python-checkins
mailing list