boto.compat, base64: fix version handling of (en|de)codebytes (#4070)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-05-24 18:44:43 -07:00
committed by GitHub
parent 8827f84763
commit 8cf04f3a74
2 changed files with 7 additions and 3 deletions

View File

@@ -1,7 +1,10 @@
import sys
from typing import Any
from base64 import encodestring as encodebytes
if sys.version_info >= (3,):
from base64 import encodebytes as encodebytes
else:
from base64 import encodestring as encodebytes
from six.moves import http_client