##// END OF EJS Templates
safehasattr: pass attribute name as string instead of bytes...
marmoute -
r51461:82ef5410 default
parent child Browse files
Show More
@@ -868,7 +868,7 b' def flatten(context, mapping, thing):'
868 yield i
868 yield i
869 elif i is None:
869 elif i is None:
870 pass
870 pass
871 elif not util.safehasattr(i, b'__iter__'):
871 elif not util.safehasattr(i, '__iter__'):
872 yield pycompat.bytestr(i)
872 yield pycompat.bytestr(i)
873 else:
873 else:
874 for j in flatten(context, mapping, i):
874 for j in flatten(context, mapping, i):
General Comments 0
You need to be logged in to leave comments. Login now