[Python-checkins] cpython (2.7): Fix a few quotes/backslashes.
ezio.melotti
python-checkins at python.org
Thu Sep 20 08:49:10 CEST 2012
http://hg.python.org/cpython/rev/1a61c56050e4
changeset: 79062:1a61c56050e4
branch: 2.7
parent: 79053:e0c2bd9e0ac1
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Thu Sep 20 09:48:07 2012 +0300
summary:
Fix a few quotes/backslashes.
files:
Doc/faq/windows.rst | 10 +++++-----
Doc/library/doctest.rst | 2 +-
Doc/library/pyexpat.rst | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/Doc/faq/windows.rst b/Doc/faq/windows.rst
--- a/Doc/faq/windows.rst
+++ b/Doc/faq/windows.rst
@@ -460,13 +460,13 @@
Why does os.path.isdir() fail on NT shared directories?
-------------------------------------------------------
-The solution appears to be always append the "\\" on the end of shared
-drives.
+In order to work correctly, :func:`os.path.isdir` requires a ``"\\"`` at the
+end of the shared drive::
>>> import os
- >>> os.path.isdir( '\\\\rorschach\\public')
+ >>> os.path.isdir('\\\\rorschach\\public')
0
- >>> os.path.isdir( '\\\\rorschach\\public\\')
+ >>> os.path.isdir('\\\\rorschach\\public\\')
1
It helps to think of share points as being like drive letters. Example::
@@ -476,7 +476,7 @@
k:\media is a directory
k:\media\ is not a directory
-The same rules apply if you substitute "k:" with "\\conky\foo"::
+The same rules apply if you substitute ``"k:"`` with ``"\\conky\foo"``::
\\conky\foo is not a directory
\\conky\foo\ is a directory
diff --git a/Doc/library/doctest.rst b/Doc/library/doctest.rst
--- a/Doc/library/doctest.rst
+++ b/Doc/library/doctest.rst
@@ -363,7 +363,7 @@
Backslashes in a raw docstring: m\n
Otherwise, the backslash will be interpreted as part of the string. For example,
- the "\\" above would be interpreted as a newline character. Alternatively, you
+ the ``\n`` above would be interpreted as a newline character. Alternatively, you
can double each backslash in the doctest version (and not use a raw string)::
>>> def f(x):
diff --git a/Doc/library/pyexpat.rst b/Doc/library/pyexpat.rst
--- a/Doc/library/pyexpat.rst
+++ b/Doc/library/pyexpat.rst
@@ -437,7 +437,7 @@
.. method:: xmlparser.CommentHandler(data)
Called for comments. *data* is the text of the comment, excluding the leading
- '``<!-``\ ``-``' and trailing '``-``\ ``->``'.
+ ``'<!-``\ ``-'`` and trailing ``'-``\ ``->'``.
.. method:: xmlparser.StartCdataSectionHandler()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list