[pypy-svn] r56310 - pypy/branch/2.5-features/pypy/module/_file

cfbolz at codespeak.net cfbolz at codespeak.net
Fri Jul 4 20:37:24 CEST 2008


Author: cfbolz
Date: Fri Jul  4 20:37:22 2008
New Revision: 56310

Modified:
   pypy/branch/2.5-features/pypy/module/_file/interp_file.py
Log:
Typos in the doc strings. Arguments in the unwrap spec are usually called
__args__ in the parameter names.


Modified: pypy/branch/2.5-features/pypy/module/_file/interp_file.py
==============================================================================
--- pypy/branch/2.5-features/pypy/module/_file/interp_file.py	(original)
+++ pypy/branch/2.5-features/pypy/module/_file/interp_file.py	Fri Jul  4 20:37:22 2008
@@ -78,7 +78,7 @@
     def direct___enter__(self):
         return self
 
-    def direct___exit__(self, excinfo):
+    def direct___exit__(self, __args__):
         self.direct_close()
         # can't return close() value
         return None
@@ -271,10 +271,10 @@
     _decl(locals(), "__init__", ['self', str, str, int],
           """Opens a file.""")
 
-    _decl(locals(), "__enter__", ['self'], """enter__() -> self.""")
+    _decl(locals(), "__enter__", ['self'], """__enter__() -> self.""")
 
     _decl(locals(), "__exit__", ['self', Arguments], 
-        """exit__(*excinfo) -> None. Closes the file.""")
+        """__exit__(*excinfo) -> None. Closes the file.""")
 
     _decl(locals(), "close", ['self'],
         """close() -> None or (perhaps) an integer.  Close the file.



More information about the Pypy-commit mailing list