We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6827264 commit 0bb1a68Copy full SHA for 0bb1a68
2 files changed
uvloop/errors.pyx
@@ -11,12 +11,7 @@ cdef __convert_python_error(int uverr):
11
12
cdef int oserr
13
if system.PLATFORM_IS_WINDOWS:
14
- # XXX Won't work for Windows:
15
- # From libuv docs:
16
- # Implementation detail: on Unix error codes are the
17
- # negated errno (or -errno), while on Windows they
18
- # are defined by libuv to arbitrary negative numbers.
19
-
+
20
# Winloop comment: The following approach seems to work for Windows:
21
# translation from uverr, which is a negative number like -4088 or -4071
22
# defined by libuv (as mentioned above), to error numbers obtained via
uvloop/includes/compat.h
@@ -165,5 +165,4 @@ void PyOS_AfterFork_Parent() {
165
void PyOS_AfterFork_Child() {
166
return;
167
}
168
169
#endif
0 commit comments