]> granicus.if.org Git - python/commitdiff
Fix a few quotes/backslashes.
authorEzio Melotti <ezio.melotti@gmail.com>
Thu, 20 Sep 2012 06:47:03 +0000 (09:47 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Thu, 20 Sep 2012 06:47:03 +0000 (09:47 +0300)
Doc/faq/windows.rst
Doc/library/doctest.rst
Doc/library/pyexpat.rst

index 68a1b5c153c73ff08b64bbe4773c26dcc8d42711..84e3ff47391aefb95e73329144bbe80516900e1f 100644 (file)
@@ -464,13 +464,13 @@ to console subprocesses which are designed to handle those signals. See
 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::
@@ -480,7 +480,7 @@ It helps to think of share points as being like drive letters.  Example::
    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
index cad03bd2a1b60c6075e69c393632bb63634db5b8..ed53f0605176f24208f759643da4129508eb49cf 100644 (file)
@@ -338,7 +338,7 @@ The fine print:
      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):
index a648cfa529039b2859b535e5101163df8278a63c..861546c2e8752f06b7aea789d0394d214cb1b469 100644 (file)
@@ -402,7 +402,7 @@ otherwise stated.
 .. method:: xmlparser.CommentHandler(data)
 
    Called for comments.  *data* is the text of the comment, excluding the leading
-   '``<!-``\ ``-``' and trailing '``-``\ ``->``'.
+   ``'<!-``\ ``-'`` and trailing ``'-``\ ``->'``.
 
 
 .. method:: xmlparser.StartCdataSectionHandler()