##// END OF EJS Templates
py3: avoid use of basestring...
Pulkit Goyal -
r30569:bcb85839 default
parent child Browse files
Show More
@@ -535,7 +535,7 b' class ui(object):'
535 result = self.config(section, name, untrusted=untrusted)
535 result = self.config(section, name, untrusted=untrusted)
536 if result is None:
536 if result is None:
537 result = default or []
537 result = default or []
538 if isinstance(result, basestring):
538 if isinstance(result, bytes):
539 result = _configlist(result.lstrip(' ,\n'))
539 result = _configlist(result.lstrip(' ,\n'))
540 if result is None:
540 if result is None:
541 result = default or []
541 result = default or []
@@ -9,6 +9,6 b' The full traceback is hidden to have a s'
9 > $PYTHON3 `which hg` $cmd 2>&1 2>&1 | tail -1
9 > $PYTHON3 `which hg` $cmd 2>&1 2>&1 | tail -1
10 > done
10 > done
11 version
11 version
12 NameError: name 'basestring' is not defined
12 TypeError: Can't convert 'bytes' object to str implicitly
13 debuginstall
13 debuginstall
14 NameError: name 'basestring' is not defined
14 TypeError: Can't convert 'bytes' object to str implicitly
General Comments 0
You need to be logged in to leave comments. Login now