Kaydet (Commit) ec5b5cb4 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

the name of the option is a bit too low-level

üst dbd4efa2
...@@ -2535,14 +2535,14 @@ the particular object. ...@@ -2535,14 +2535,14 @@ the particular object.
.. attribute:: file.newlines .. attribute:: file.newlines
If Python was built with the :option:`--with-universal-newlines` option to If Python was built with universal newlines enabled (the default) this
:program:`configure` (the default) this read-only attribute exists, and for read-only attribute exists, and for files opened in universal newline read
files opened in universal newline read mode it keeps track of the types of mode it keeps track of the types of newlines encountered while reading the
newlines encountered while reading the file. The values it can take are file. The values it can take are ``'\r'``, ``'\n'``, ``'\r\n'``, ``None``
``'\r'``, ``'\n'``, ``'\r\n'``, ``None`` (unknown, no newlines read yet) or a (unknown, no newlines read yet) or a tuple containing all the newline types
tuple containing all the newline types seen, to indicate that multiple newline seen, to indicate that multiple newline conventions were encountered. For
conventions were encountered. For files not opened in universal newline read files not opened in universal newline read mode the value of this attribute
mode the value of this attribute will be ``None``. will be ``None``.
.. attribute:: file.softspace .. attribute:: file.softspace
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment