Skip to content

Commit 16b5bc6

Browse files
Do not check isabs() on Windows. (gh-28584)
I missed this in gh-28550. https://bugs.python.org/issue45211
1 parent ae7839b commit 16b5bc6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/fileutils.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2138,7 +2138,9 @@ wchar_t *
21382138
_Py_join_relfile(const wchar_t *dirname, const wchar_t *relfile)
21392139
{
21402140
assert(dirname != NULL && relfile != NULL);
2141+
#ifndef MS_WINDOWS
21412142
assert(!_Py_isabs(relfile));
2143+
#endif
21422144
size_t maxlen = wcslen(dirname) + 1 + wcslen(relfile);
21432145
size_t bufsize = maxlen + 1;
21442146
wchar_t *filename = PyMem_RawMalloc(bufsize * sizeof(wchar_t));

0 commit comments

Comments
 (0)