]> gitweb.fluxo.info Git - ckandumper.git/commitdiff
Remove dependency on subprocess module
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 15 May 2019 19:59:57 +0000 (16:59 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 15 May 2019 19:59:57 +0000 (16:59 -0300)
ckandumper

index d2aa8a3214db19ef22ebad018366338f6dbfac59..51089b7c3a5f87e9d6aa0e42bc6a88dd5bb7a2d3 100755 (executable)
@@ -22,7 +22,7 @@
 import asyncio
 import argparse
 import curses
-import sys, os, subprocess, json
+import sys, os, json
 from urllib.parse import urlencode
 
 class StatusLine:
@@ -86,7 +86,6 @@ class DownloadMultiple:
 
             # Other opts: -q --show-progress
             cmd  = '/usr/bin/wget ' + self.limit_rate + ' -q --show-progress --progress=dot -c -O "' + local_filename + '" ' + url
-            #proc = subprocess.call(cmd, shell=True)
             proc = await asyncio.create_subprocess_shell(cmd,
                                                          stdout=asyncio.subprocess.PIPE,
                                                          stderr=asyncio.subprocess.PIPE)