Skip to content

Commit

Permalink
bump version, Merge pull request tqdm#47 from tqdm/misc_bugfixes
Browse files Browse the repository at this point in the history
Misc bugfixes
  • Loading branch information
casperdcl committed Nov 7, 2015
2 parents bcaad33 + da91bb2 commit 6421fa9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tqdm/_tqdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ def StatusPrinter(file):
may not work (it will print a new line at each refresh).
"""
fp = file
if not getattr(fp, 'flush', False): # pragma: no cover
fp.flush = lambda: None

last_printed_len = [0] # closure over mutable variable (fast)

def print_status(s):
Expand Down
2 changes: 1 addition & 1 deletion tqdm/_utils.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def _environ_cols_windows(fp): # pragma: no cover
(bufx, bufy, curx, cury, wattr, left, top, right, bottom,
maxx, maxy) = struct.unpack("hhhhHhhhhhh", csbi.raw)
# nlines = bottom - top + 1
return right - left + 1
return right - left # +1
except:
pass
return None
Expand Down
2 changes: 1 addition & 1 deletion tqdm/_version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Definition of the version number
version_info = 2, 2, 0 # major, minor, patch, -extra
version_info = 2, 2, 1 # major, minor, patch, -extra

# Nice string for the version
__version__ = '.'.join(map(str, version_info)).replace('.-', '-').strip('.-')

0 comments on commit 6421fa9

Please sign in to comment.