Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe6e7e6

Browse files
committed
Merge the quotes/backslashes fixes with 3.2.
2 parents a58d8b0 + 694f233 commit fe6e7e6

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

Doc/faq/windows.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -464,13 +464,13 @@ to console subprocesses which are designed to handle those signals. See
464464
Why does os.path.isdir() fail on NT shared directories?
465465
-------------------------------------------------------
466466

467-
The solution appears to be always append the "\\" on the end of shared
468-
drives.
467+
In order to work correctly, :func:`os.path.isdir` requires a ``"\\"`` at the
468+
end of the shared drive::
469469

470470
>>> import os
471-
>>> os.path.isdir( '\\\\rorschach\\public')
471+
>>> os.path.isdir('\\\\rorschach\\public')
472472
0
473-
>>> os.path.isdir( '\\\\rorschach\\public\\')
473+
>>> os.path.isdir('\\\\rorschach\\public\\')
474474
1
475475

476476
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::
480480
k:\media is a directory
481481
k:\media\ is not a directory
482482

483-
The same rules apply if you substitute "k:" with "\\conky\foo"::
483+
The same rules apply if you substitute ``"k:"`` with ``"\\conky\foo"``::
484484

485485
\\conky\foo is not a directory
486486
\\conky\foo\ is a directory

Doc/library/doctest.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ The fine print:
338338
Backslashes in a raw docstring: m\n
339339

340340
Otherwise, the backslash will be interpreted as part of the string. For example,
341-
the "\\" above would be interpreted as a newline character. Alternatively, you
341+
the ``\n`` above would be interpreted as a newline character. Alternatively, you
342342
can double each backslash in the doctest version (and not use a raw string)::
343343

344344
>>> def f(x):

Doc/library/pyexpat.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ otherwise stated.
402402
.. method:: xmlparser.CommentHandler(data)
403403

404404
Called for comments. *data* is the text of the comment, excluding the leading
405-
'``<!-``\ ``-``' and trailing '``-``\ ``->``'.
405+
``'<!-``\ ``-'`` and trailing ``'-``\ ``->'``.
406406

407407

408408
.. method:: xmlparser.StartCdataSectionHandler()

0 commit comments

Comments
 (0)