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

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

No files matched your search

+4 -1
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