[pypy-svn] r49410 - pypy/branch/pypy-interp-file/module/_file

arigo at codespeak.net arigo at codespeak.net
Wed Dec 5 20:06:11 CET 2007


Author: arigo
Date: Wed Dec  5 20:06:11 2007
New Revision: 49410

Modified:
   pypy/branch/pypy-interp-file/module/_file/app_file.py
   pypy/branch/pypy-interp-file/module/_file/interp_file.py
Log:
forgot to check in docstrings.


Modified: pypy/branch/pypy-interp-file/module/_file/app_file.py
==============================================================================
--- pypy/branch/pypy-interp-file/module/_file/app_file.py	(original)
+++ pypy/branch/pypy-interp-file/module/_file/app_file.py	Wed Dec  5 20:06:11 2007
@@ -79,7 +79,7 @@
             result.append('\r\n')
         return tuple(result)
 
-    mode     = property(lambda self: self._mode,
+    #mode     = property(lambda self: self._mode,
                         doc = "file mode ('r', 'U', 'w', 'a', "
                               "possibly with 'b' or '+' added)")
     #name     = property(lambda self: self._name, doc = "file name")

Modified: pypy/branch/pypy-interp-file/module/_file/interp_file.py
==============================================================================
--- pypy/branch/pypy-interp-file/module/_file/interp_file.py	(original)
+++ pypy/branch/pypy-interp-file/module/_file/interp_file.py	Wed Dec  5 20:06:11 2007
@@ -365,8 +365,10 @@
 """,
     __new__  = interp2app(descr_file__new__),
     fdopen   = interp2app(descr_file_fdopen, as_classmethod=True),
-    name     = interp_attrproperty('name', cls=W_File),
-    mode     = interp_attrproperty('mode', cls=W_File),
+    name     = interp_attrproperty('name', cls=W_File, doc="file name"),
+    mode     = interp_attrproperty('mode', cls=W_File,
+                              doc = "file mode ('r', 'U', 'w', 'a', "
+                                    "possibly with 'b' or '+' added)"),
     newlines = GetSetProperty(descr_file_newlines, cls=W_File,
                               doc="end-of-line convention used in this file"),
     __repr__ = interp2app(W_File.file__repr__),



More information about the Pypy-commit mailing list