Skip to content

Commit

Permalink
Make FakeProgressBar support pct and label. Closes #240.
Browse files Browse the repository at this point in the history
  • Loading branch information
polyatail committed Apr 2, 2019
1 parent da4dfda commit a0ef4c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions onecodex/lib/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,9 @@ def _file_stats(file_path, enforce_fastx=True):
# this lets us turn off the click progressbar context manager and is python2 compatible
# https://stackoverflow.com/questions/45187286/how-do-i-write-a-null-no-op-contextmanager-in-python
class FakeProgressBar(object):
pct = 0
label = ''

def __init__(self):
pass

Expand Down

0 comments on commit a0ef4c0

Please sign in to comment.