Skip to content

Commit

Permalink
Python 3 compatibility
Browse files Browse the repository at this point in the history
This is really a band-aid. Without this, Python 3 complained about:
TypeError: unsupported format string passed to Version.__format__
Which is really a problem with __format__ rather than here.
  • Loading branch information
mottosso committed Jun 14, 2019
1 parent 86957fc commit c6e1378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rez/cli/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def format_variants(package):
for package in new:
tell(row_line.format(
package.name,
package.version,
str(package.version),
format_variants(package)
))

Expand All @@ -200,7 +200,7 @@ def format_variants(package):
for package in exists:
tell(row_line.format(
package.name,
package.version,
str(package.version),
format_variants(package)
))

Expand Down

0 comments on commit c6e1378

Please sign in to comment.