[Checkins] SVN: zope.security/trunk/src/zope/security/untrustedpython/builtins.txt Spelling and whitespace.

Stephan Richter srichter at cosmos.phy.tufts.edu
Wed Jun 4 20:59:24 EDT 2008


Log message for revision 87148:
  Spelling and whitespace.
  

Changed:
  U   zope.security/trunk/src/zope/security/untrustedpython/builtins.txt

-=-
Modified: zope.security/trunk/src/zope/security/untrustedpython/builtins.txt
===================================================================
--- zope.security/trunk/src/zope/security/untrustedpython/builtins.txt	2008-06-04 14:54:10 UTC (rev 87147)
+++ zope.security/trunk/src/zope/security/untrustedpython/builtins.txt	2008-06-05 00:59:22 UTC (rev 87148)
@@ -34,7 +34,7 @@
 (Note that you can mutate it through its `__dict__` attribute,
  however, when combined with the untrusted code compiler, getting the
  `__dict__` attribute will return a proxied object that will prevent
- mutation.) 
+ mutation.)
 
 It contains items with keys that are all strings and values that are
 either proxied or are basic types:
@@ -60,7 +60,7 @@
 The safe builtins also contains a custom __import__ function.
 
   >>> imp = SafeBuiltins.__import__
-  
+
 As with regular import, it only returns the top-level package if no
 fromlist is specified:
 
@@ -74,17 +74,17 @@
 
   >>> type(imp('zope.security')) is Proxy
   True
-  
+
 This means that, having imported a module, you will only be able to
 access attributes for which you are authorized.
 
-Unlike regular __import__, you can nly import modules that have been
+Unlike regular __import__, you can only import modules that have been
 previously imported.  This is to prevent unauthorized execution of
 module-initialization code:
 
   >>> security = zope.security
   >>> import sys
-  >>> del sys.modules['zope.security'] 
+  >>> del sys.modules['zope.security']
   >>> imp('zope.security')
   Traceback (most recent call last):
   ...
@@ -105,10 +105,10 @@
   >>> imp('security.untrustedpython', {'__name__': 'zope.foo'}, {}, ['*']
   ...     ) == untrustedpython
   True
-  
 
 
 
 
 
 
+



More information about the Checkins mailing list