Author steve.dower
Recipients iamsav, paul.moore, steve.dower, tim.golden, zach.ware
Date 2019-09-10.16:28:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1568132883.59.0.886615163919.issue38081@roundup.psfhosted.org>
In-reply-to
Content
What does pip use it for?

Applying the below change avoids the exception, but produces \\.\nul as the result, which may or may not be any better.

diff --git a/Lib/ntpath.py b/Lib/ntpath.py
index 1d22d5f1dc..becfa20a83 100644
--- a/Lib/ntpath.py
+++ b/Lib/ntpath.py
@@ -537,7 +537,7 @@ else:
             except OSError as ex:
                 # Stop on file (2) or directory (3) not found, or
                 # paths that are not reparse points (4390)
-                if ex.winerror in (2, 3, 4390):
+                if ex.winerror in (1, 2, 3, 4390):
                     break
                 raise
             except ValueError:
@@ -555,7 +555,7 @@ else:

         # Allow file (2) or directory (3) not found, invalid syntax (123),
         # and symlinks that cannot be followed (1921)
-        allowed_winerror = 2, 3, 123, 1921
+        allowed_winerror = 2, 3, 87, 123, 1921

         # Non-strict algorithm is to find as much of the target directory
         # as we can and join the rest.
History
Date User Action Args
2019-09-10 16:28:03steve.dowersetrecipients: + steve.dower, paul.moore, tim.golden, zach.ware, iamsav
2019-09-10 16:28:03steve.dowersetmessageid: <1568132883.59.0.886615163919.issue38081@roundup.psfhosted.org>
2019-09-10 16:28:03steve.dowerlinkissue38081 messages
2019-09-10 16:28:03steve.dowercreate