Skip to content

Commit 3c03e8e

Browse files
committed
we don't support ancient cffi any more
1 parent bdfc1a0 commit 3c03e8e

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/OpenSSL/_util.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,4 @@ def text_to_bytes_and_warn(label, obj):
155155
return obj
156156

157157

158-
try:
159-
# newer versions of cffi free the buffer deterministically
160-
with ffi.from_buffer(b""):
161-
pass
162-
from_buffer = ffi.from_buffer
163-
except AttributeError:
164-
# cffi < 0.12 frees the buffer with refcounting gc
165-
from contextlib import contextmanager
166-
167-
@contextmanager
168-
def from_buffer(*args):
169-
yield ffi.from_buffer(*args)
158+
from_buffer = ffi.from_buffer

0 commit comments

Comments
 (0)