-
-
Notifications
You must be signed in to change notification settings - Fork 29.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix realpath ValueError on null byte
Calling os.path.realpath with a path containg a null byte ("\x00") it raised an ValueError on posix systems. This fix will catch the ValueError similar to how other path operations are handling such an Error. e.g. os.path.existsm os.path.ismount, os.fspath, os.path.islink
- Loading branch information
1 parent
6150bb2
commit 2155d32
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters