diff options
author | Fred Drake <fdrake@acm.org> | 2001-05-10 15:33:31 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-05-10 15:33:31 (GMT) |
commit | a94414a2875e8e5c17af3a1567fdb78432394748 (patch) | |
tree | e2d6555947376ea70785484e4632a0f098e40a14 /Lib/asyncore.py | |
parent | 7c116d7acb8edcc7adcf96a84035e585be37fb9c (diff) | |
download | cpython-a94414a2875e8e5c17af3a1567fdb78432394748.zip cpython-a94414a2875e8e5c17af3a1567fdb78432394748.tar.gz cpython-a94414a2875e8e5c17af3a1567fdb78432394748.tar.bz2 |
Remove all remaining uses of the FCNTL module from the standard library.
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r-- | Lib/asyncore.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py index 548ce43..4411048 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -510,7 +510,6 @@ def close_all (map=None): import os if os.name == 'posix': import fcntl - import FCNTL class file_wrapper: # here we override just enough to make a file @@ -538,9 +537,9 @@ if os.name == 'posix': dispatcher.__init__ (self) self.connected = 1 # set it to non-blocking mode - flags = fcntl.fcntl (fd, FCNTL.F_GETFL, 0) - flags = flags | FCNTL.O_NONBLOCK - fcntl.fcntl (fd, FCNTL.F_SETFL, flags) + flags = fcntl.fcntl (fd, fcntl.F_GETFL, 0) + flags = flags | os.O_NONBLOCK + fcntl.fcntl (fd, fcntl.F_SETFL, flags) self.set_file (fd) def set_file (self, fd): |