Author: Manuel Jacob <m...@manueljacob.de> Branch: py3.5-ssl-revdb Changeset: r95989:9dbb4911ba4d Date: 2019-02-12 19:54 +0100 http://bitbucket.org/pypy/pypy/changeset/9dbb4911ba4d/
Log: Remove unnecessary variable. diff --git a/lib_pypy/_cffi_ssl/_stdssl/__init__.py b/lib_pypy/_cffi_ssl/_stdssl/__init__.py --- a/lib_pypy/_cffi_ssl/_stdssl/__init__.py +++ b/lib_pypy/_cffi_ssl/_stdssl/__init__.py @@ -443,10 +443,9 @@ sock = self.get_socket_or_connection_gone() if buffer_into is None: - dest = ffi.new("char[]", length) + mem = ffi.new("char[]", length) if length == 0: return b"" - mem = dest else: mem = ffi.from_buffer(buffer_into) if length <= 0 or length > len(buffer_into): @@ -500,7 +499,7 @@ raise pyssl_error(self, count) if not buffer_into: - return _bytes_with_len(dest, count) + return _bytes_with_len(mem, count) return count _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit