aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-05-15 16:59:57 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-05-15 16:59:57 -0300
commit7d58c3e04b3763dbd3dd0ca77950d3e9deaae674 (patch)
tree2bbbb3ee7c0c4ab45535dbca66d362ff4cd5257d
parent661c8d405c266381383870c1f23656a49d16671b (diff)
downloadckandumper-7d58c3e04b3763dbd3dd0ca77950d3e9deaae674.tar.gz
ckandumper-7d58c3e04b3763dbd3dd0ca77950d3e9deaae674.tar.bz2
Remove dependency on subprocess module
-rwxr-xr-xckandumper3
1 files changed, 1 insertions, 2 deletions
diff --git a/ckandumper b/ckandumper
index d2aa8a3..51089b7 100755
--- a/ckandumper
+++ b/ckandumper
@@ -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)