mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-21 07:30:28 +08:00
boto.compat, base64: fix version handling of (en|de)codebytes (#4070)
Co-authored-by: hauntsaninja <>
This commit is contained in:
co-authored by
hauntsaninja <>
parent
8827f84763
commit
8cf04f3a74
Vendored
+4
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user