From: Ezio Melotti Date: Thu, 20 Sep 2012 06:48:07 +0000 (+0300) Subject: Fix a few quotes/backslashes. X-Git-Tag: v2.7.5~109^2~295 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a8e49638d1c8346a2bd62851c5b3c1492f9be90f;p=python Fix a few quotes/backslashes. --- diff --git a/Doc/faq/windows.rst b/Doc/faq/windows.rst index dbb7bb8fb9..46db0171ad 100644 --- a/Doc/faq/windows.rst +++ b/Doc/faq/windows.rst @@ -460,13 +460,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:: @@ -476,7 +476,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 diff --git a/Doc/library/doctest.rst b/Doc/library/doctest.rst index b07663c205..a316558922 100644 --- a/Doc/library/doctest.rst +++ b/Doc/library/doctest.rst @@ -363,7 +363,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): diff --git a/Doc/library/pyexpat.rst b/Doc/library/pyexpat.rst index 82997398d3..d09610cff9 100644 --- a/Doc/library/pyexpat.rst +++ b/Doc/library/pyexpat.rst @@ -437,7 +437,7 @@ otherwise stated. .. method:: xmlparser.CommentHandler(data) Called for comments. *data* is the text of the comment, excluding the leading - '````'. + ``''``. .. method:: xmlparser.StartCdataSectionHandler()