Permalink
Browse files

Merge pull request #80 from michaeta/version_fix

Type casted all project versions to strings
  • Loading branch information...
njwilson committed Jun 1, 2012
2 parents e6fd2aa + 1667a98 commit 9154b4db38a9e0a22789f87d40e685926ce27f13
Showing with 2 additions and 2 deletions.
  1. +1 −1 pip2/commands/freeze.py
  2. +1 −1 pip2/commands/search.py
View
@@ -28,6 +28,6 @@ def freeze():
installed = dict()
for dist in results:
installed[dist.name] = dict()
- installed[dist.name]['version'] = dist.version
+ installed[dist.name]['version'] = str(dist.version)
return installed
View
@@ -53,7 +53,7 @@ def search(query):
if project.name in installed.keys():
results[project.name]['installed_version'] = \
installed[project.name]['version']
- results[project.name]['latest_version'] = release.version
+ results[project.name]['latest_version'] = str(release.version)
else:
results[project.name]['summary'] = "CANNOT GET SUMMARY"

0 comments on commit 9154b4d

Please sign in to comment.