Skip to content

Commit

Permalink
Bug fix for Python 3.x compatibility (map() returning list vs. iterat…
Browse files Browse the repository at this point in the history
…or, issue #55)

See issue 55 on GitHub:
  #55
  • Loading branch information
xolox committed May 3, 2015
1 parent c8712db commit f8d8ba7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pip_accel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"""

# Semi-standard module versioning.
__version__ = '0.29.2'
__version__ = '0.29.3'

# Standard library modules.
import logging
Expand Down
2 changes: 1 addition & 1 deletion pip_accel/req.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def last_modified(self):
cached binary distributions enough and invalidating them too
frequently, this property causes the latter to happen.
"""
mtimes = map(os.path.getmtime, self.related_archives)
mtimes = list(map(os.path.getmtime, self.related_archives))
return max(mtimes) if mtimes else time.time()

@cached_property
Expand Down

0 comments on commit f8d8ba7

Please sign in to comment.