Ticket #3423: correcao.diff

File correcao.diff, 0.6 kB (added by jtoledo, 2 months ago)

Another solution. It doesn't change the way parameters are passed, so I prefer it.

  • graphviz.py

    old new  
    420420 
    421421 
    422422    def launch(self, cmd, input): 
    423         """Launch a process (cmd), and returns exitcode, stdout + stderr""" 
    424         p = subprocess.Popen(cmd
     423        """Launch a process (cmd), and returns stdout + stderr""" 
     424        p = subprocess.Popen([i for i in cmd if i]
    425425                             stdin=subprocess.PIPE, 
    426426                             stdout=subprocess.PIPE, 
    427427                             stderr=subprocess.PIPE)