Mercurial > public > mercurial-scm > hg-stable
diff tests/test-check-py3-commands.t @ 30574:bcb858396233
py3: avoid use of basestring
"In this case, result is a source variable of a list to be returned, it
shouldn't be unicode. Hence we can use bytes instead of basestring here." -Yuya
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Wed, 30 Nov 2016 23:51:11 +0530 |
parents | 954002426f78 |
children | 2d555d753f0e |
line wrap: on
line diff
--- a/tests/test-check-py3-commands.t Wed Nov 30 23:38:50 2016 +0530 +++ b/tests/test-check-py3-commands.t Wed Nov 30 23:51:11 2016 +0530 @@ -9,6 +9,6 @@ > $PYTHON3 `which hg` $cmd 2>&1 2>&1 | tail -1 > done version - NameError: name 'basestring' is not defined + TypeError: Can't convert 'bytes' object to str implicitly debuginstall - NameError: name 'basestring' is not defined + TypeError: Can't convert 'bytes' object to str implicitly