Commit a8e49638 authored by Ezio Melotti's avatar Ezio Melotti

Fix a few quotes/backslashes.

parent aea83f53
...@@ -460,13 +460,13 @@ to console subprocesses which are designed to handle those signals. See ...@@ -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? Why does os.path.isdir() fail on NT shared directories?
------------------------------------------------------- -------------------------------------------------------
The solution appears to be always append the "\\" on the end of shared In order to work correctly, :func:`os.path.isdir` requires a ``"\\"`` at the
drives. end of the shared drive::
>>> import os >>> import os
>>> os.path.isdir( '\\\\rorschach\\public') >>> os.path.isdir('\\\\rorschach\\public')
0 0
>>> os.path.isdir( '\\\\rorschach\\public\\') >>> os.path.isdir('\\\\rorschach\\public\\')
1 1
It helps to think of share points as being like drive letters. Example:: 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:: ...@@ -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 a directory
k:\media\ is not 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 not a directory
\\conky\foo\ is a directory \\conky\foo\ is a directory
......
...@@ -363,7 +363,7 @@ The fine print: ...@@ -363,7 +363,7 @@ The fine print:
Backslashes in a raw docstring: m\n Backslashes in a raw docstring: m\n
Otherwise, the backslash will be interpreted as part of the string. For example, 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):: can double each backslash in the doctest version (and not use a raw string)::
>>> def f(x): >>> def f(x):
......
...@@ -437,7 +437,7 @@ otherwise stated. ...@@ -437,7 +437,7 @@ otherwise stated.
.. method:: xmlparser.CommentHandler(data) .. method:: xmlparser.CommentHandler(data)
Called for comments. *data* is the text of the comment, excluding the leading Called for comments. *data* is the text of the comment, excluding the leading
'``<!-``\ ``-``' and trailing '``-``\ ``->``'. ``'<!-``\ ``-'`` and trailing ``'-``\ ``->'``.
.. method:: xmlparser.StartCdataSectionHandler() .. method:: xmlparser.StartCdataSectionHandler()
......
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