diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2019-05-15 16:59:57 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2019-05-15 16:59:57 -0300 |
commit | 7d58c3e04b3763dbd3dd0ca77950d3e9deaae674 (patch) | |
tree | 2bbbb3ee7c0c4ab45535dbca66d362ff4cd5257d | |
parent | 661c8d405c266381383870c1f23656a49d16671b (diff) | |
download | ckandumper-7d58c3e04b3763dbd3dd0ca77950d3e9deaae674.tar.gz ckandumper-7d58c3e04b3763dbd3dd0ca77950d3e9deaae674.tar.bz2 |
Remove dependency on subprocess module
-rwxr-xr-x | ckandumper | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) |