1. Denis Bilenko
  2. gevent

Commits

Denis Bilenko  committed 68b40aa

os: fix AttributeError on Windows (os.fork)

  • Participants
  • Parent commits 9946460
  • Branches default

Comments (0)

Files changed (1)

File gevent/os.py

View file
  • Ignore whitespace
 
 _read = os.read
 _write = os.write
-_fork = os.fork
 
 
 ignored_errors = [EAGAIN, errno.EINTR]
 
 
 if hasattr(os, 'fork'):
+    _fork = os.fork
 
     def fork():
         result = _fork()