##// END OF EJS Templates
safehasattr: pass attribute name as string instead of bytes...
marmoute -
r51459:309a7ece default
parent child Browse files
Show More
@@ -107,7 +107,7 b' class request:'
107 def _flushstdio(ui, err):
107 def _flushstdio(ui, err):
108 status = None
108 status = None
109 # In all cases we try to flush stdio streams.
109 # In all cases we try to flush stdio streams.
110 if util.safehasattr(ui, b'fout'):
110 if util.safehasattr(ui, 'fout'):
111 assert ui is not None # help pytype
111 assert ui is not None # help pytype
112 assert ui.fout is not None # help pytype
112 assert ui.fout is not None # help pytype
113 try:
113 try:
General Comments 0
You need to be logged in to leave comments. Login now