Fix 2/3 str/bytes compatibility issue

pull/19456/head
Lidi Zheng 6 years ago
parent 12c296b3dc
commit 5f98b1e8ef
  1. 2
      examples/python/auth/_credentials.py

@ -23,7 +23,7 @@ import os
def _load_credential_from_file(filepath):
real_path = os.path.join(os.path.dirname(__file__), filepath)
with open(real_path, 'r') as f:
return f.read()
return bytes(f.read())
SERVER_CERTIFICATE = _load_credential_from_file('credentials/localhost.crt')

Loading…
Cancel
Save