diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-09-20 06:47:41 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-09-20 06:47:41 (GMT) |
commit | fe6e7e6b30464d7c742bddbe5e96d6ca886ae123 (patch) | |
tree | 769339223cd247f03f68a9c474b7300d9e66937b /Doc/faq | |
parent | a58d8b05dff849101cec118cc2a4517cf3ffe001 (diff) | |
parent | 694f2331c6959872e05f76c757799be0c4b00748 (diff) | |
download | cpython-fe6e7e6b30464d7c742bddbe5e96d6ca886ae123.zip cpython-fe6e7e6b30464d7c742bddbe5e96d6ca886ae123.tar.gz cpython-fe6e7e6b30464d7c742bddbe5e96d6ca886ae123.tar.bz2 |
Merge the quotes/backslashes fixes with 3.2.
Diffstat (limited to 'Doc/faq')
-rw-r--r-- | Doc/faq/windows.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/faq/windows.rst b/Doc/faq/windows.rst index 68a1b5c..84e3ff4 100644 --- a/Doc/faq/windows.rst +++ b/Doc/faq/windows.rst @@ -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 |