Merge pull request #2762 from iterative/efiop-patch-1-restyled

Restyle dvc: add workaround for `LookupError: unknown encoding: idna`
This commit is contained in:
Ruslan Kuprieiev
2019-11-08 20:26:26 +02:00
committed by GitHub
+1 -1
View File
@@ -18,7 +18,7 @@ from dvc.utils.compat import is_py2
# Workaround for CPython bug. See [1] and [2] for more info.
# [1] https://github.com/aws/aws-cli/blob/1.16.277/awscli/clidriver.py#L55
# [2] https://bugs.python.org/issue29288
u''.encode('idna')
"".encode("idna")
logger = logging.getLogger("dvc")