Skip to content

Commit

Permalink
bump version, Merge branch 'nested-fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed May 28, 2017
2 parents 67218e9 + d3886d6 commit 76fe211
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion tqdm/_tqdm.py
Expand Up @@ -739,7 +739,11 @@ def __init__(self, iterable=None, desc=None, total=None, leave=True,

# if nested, at initial sp() call we replace '\r' by '\n' to
# not overwrite the outer progress bar
self.pos = self._get_free_pos(self) if position is None else position
if position is None:
self.pos = self._get_free_pos(self)
else:
self.pos = position
self._instances.remove(self)

if not gui:
# Initialize the screen printer
Expand Down
2 changes: 1 addition & 1 deletion tqdm/_version.py
Expand Up @@ -5,7 +5,7 @@
__all__ = ["__version__"]

# major, minor, patch, -extra
version_info = 4, 12, 1
version_info = 4, 12, 2

# Nice string for the version
__version__ = '.'.join(map(str, version_info))
Expand Down

0 comments on commit 76fe211

Please sign in to comment.