comparison frontends/src/jp/jp @ 721:0077912bc9ba

jp: removed named argument for pipeOut, as it's not managed with dynamicaly added methods
author Goffi <goffi@goffi.org>
date Tue, 26 Nov 2013 18:30:35 +0100
parents 3954cb4d96a7
children bfabeedbf32e
comparison
equal deleted inserted replaced
720:3954cb4d96a7 721:0077912bc9ba
271 def pipe_out(self): 271 def pipe_out(self):
272 """Create named pipe, and send stdin to it""" 272 """Create named pipe, and send stdin to it"""
273 tmp_dir = tempfile.mkdtemp() 273 tmp_dir = tempfile.mkdtemp()
274 fifopath = os.path.join(tmp_dir,"pipe_out") 274 fifopath = os.path.join(tmp_dir,"pipe_out")
275 os.mkfifo(fifopath) 275 os.mkfifo(fifopath)
276 self.bridge.pipeOut(self._getFullJid(self.dest_jid), fifopath, {}, profile_key=self.profile) 276 self.bridge.pipeOut(self._getFullJid(self.dest_jid), fifopath, {}, self.profile)
277 with open(fifopath, 'w') as f: 277 with open(fifopath, 'w') as f:
278 shutil.copyfileobj(sys.stdin, f) 278 shutil.copyfileobj(sys.stdin, f)
279 shutil.rmtree(tmp_dir) 279 shutil.rmtree(tmp_dir)
280 280
281 281