Skip to content

Commit

Permalink
Placate flake8 2 of 2
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Mar 14, 2019
1 parent ee7f1d1 commit 74487ea
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions rubicon/objc/eventloop.py
Expand Up @@ -217,15 +217,15 @@ def __init__(self, *, loop, fd):
self._fd = fd
self._cf_socket = libcf.CFSocketCreateWithNative(
kCFAllocatorDefault, self._fd,
kCFSocketReadCallBack | kCFSocketWriteCallBack |
kCFSocketConnectCallBack,
kCFSocketReadCallBack | kCFSocketWriteCallBack
| kCFSocketConnectCallBack,
self._callback,
None
)
libcf.CFSocketSetSocketFlags(
self._cf_socket,
kCFSocketAutomaticallyReenableReadCallBack |
kCFSocketAutomaticallyReenableWriteCallBack
kCFSocketAutomaticallyReenableReadCallBack
| kCFSocketAutomaticallyReenableWriteCallBack

# # This extra flag is to ensure that CF doesn't (destructively,
# # because destructively is the only way to do it) retrieve
Expand All @@ -236,8 +236,8 @@ def __init__(self, *, loop, fd):
libcf.CFRunLoopAddSource(self._loop._cfrunloop, self._src, kCFRunLoopCommonModes)
libcf.CFSocketDisableCallBacks(
self._cf_socket,
kCFSocketReadCallBack | kCFSocketWriteCallBack |
kCFSocketConnectCallBack
kCFSocketReadCallBack | kCFSocketWriteCallBack
| kCFSocketConnectCallBack
)

def enable_read(self, callback, args):
Expand Down

0 comments on commit 74487ea

Please sign in to comment.