Skip to content

Commit

Permalink
potentially fixes #111, #112
Browse files Browse the repository at this point in the history
  • Loading branch information
s0md3v authored Feb 11, 2019
1 parent 7b24d58 commit 600ef78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/flash.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
from __future__ import print_function

import sys
import threading
from core.colors import info

try:
import concurrent.futures
except ImportError:
import threading
pass

def threader(function, *urls):
"""Start multiple threads for a function."""
Expand Down Expand Up @@ -50,4 +51,4 @@ def flash(function, links, thread_count):
if i + 1 == len(links) or (i + 1) % thread_count == 0:
print('%s Progress: %i/%i' % (info, i + 1, len(links)),
end='\r')
print('')
print('')

0 comments on commit 600ef78

Please sign in to comment.