Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up imports #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions downloader.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import urllib.request
import sys
import time
import multiprocessing
from multiprocessing import Pool, Value
from ctypes import c_ulong
from multiprocessing import Pool
import guzzler
import functools
import signal
Expand Down
5 changes: 2 additions & 3 deletions guzzler.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import urllib.request
import sys
import time
from multiprocessing import Value
from ctypes import c_ulonglong
Expand Down Expand Up @@ -37,7 +36,7 @@ def set_args():
'''

parser = argparse.ArgumentParser(description='''Guzzle Away!
Guzzler is a tool that will guzzle your internet bandwidth. It does this by downloading
Guzzler is a tool that will guzzle your internet bandwidth. It does this by downloading
packages from many high-speed servers and discarding them instantly.
This is helpful if you want to know the true sustainable bandwidth of your internet.
''')
Expand Down Expand Up @@ -102,7 +101,7 @@ def read_urls(filename):
def colour(this_color, string):
'''
Returns pretty string output in colour. ANSI 256 colour mode.

Print all 256 colours with code snippet-
--------------------------------------------------------------
def color(this_color, string):
Expand Down