##// END OF EJS Templates
sshserver: avoid a multi-dot attribute lookup in a hot loop...
Bryan O'Sullivan -
r17563:46db0ec6 default
parent child Browse files
Show More
@@ -71,8 +71,9 b' class sshserver(object):'
71 self.fout.flush()
71 self.fout.flush()
72
72
73 def sendstream(self, source):
73 def sendstream(self, source):
74 write = self.fout.write
74 for chunk in source.gen:
75 for chunk in source.gen:
75 self.fout.write(chunk)
76 write(chunk)
76 self.fout.flush()
77 self.fout.flush()
77
78
78 def sendpushresponse(self, rsp):
79 def sendpushresponse(self, rsp):
General Comments 0
You need to be logged in to leave comments. Login now