bump version, Merge pull request #47 from tqdm/misc_bugfixes

Misc bugfixes
This commit is contained in:
Casper da Costa-Luis 2015-11-07 12:56:05 +00:00
commit 6421fa9815
3 changed files with 5 additions and 2 deletions

View File

@ -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):

2
tqdm/_utils.py Normal file → Executable file
View File

@ -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

View File

@ -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('.-')