Merge pull request #16364 from geckovia/improve-pypy-compatibility

Improve Pypy compatibility
pull/16372/head
Mehrdad Afshari 7 years ago committed by GitHub
commit 7a05322cf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/python/grpcio/grpc/_cython/_cygrpc/credentials.pyx.pxi

@ -48,7 +48,7 @@ cdef int _get_metadata(
cdef size_t metadata_count
cdef grpc_metadata *c_metadata
def callback(metadata, grpc_status_code status, bytes error_details):
if status is StatusCode.ok:
if status == StatusCode.ok:
_store_c_metadata(metadata, &c_metadata, &metadata_count)
cb(user_data, c_metadata, metadata_count, status, NULL)
_release_c_metadata(c_metadata, metadata_count)

Loading…
Cancel
Save