Skip to content

Commit

Permalink
py3 compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Friend committed Apr 10, 2015
1 parent d57a9ac commit 96493c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[run]
branch = true
omit =
*/_compat.py
*/env/*
*/test/*
3 changes: 2 additions & 1 deletion sc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import click
from tabulate import tabulate

from ._compat import iteritems
from .conversions import (
_to_dp,
_from_dp,
Expand Down Expand Up @@ -66,7 +67,7 @@ def convert(self, value, param, ctx):
def convert(value, unit, density=DENSITY_DEFAULT, scale=1.0):
dp = _to_dp[unit](value, density, scale)
results = []
for dn, dv in DENSITY_VALUE_MAP.iteritems():
for dn, dv in iteritems(DENSITY_VALUE_MAP):
row = [dn + 'dpi']
for unit in UNITS:
row.append(_from_dp[unit](dp, dv, scale))
Expand Down

0 comments on commit 96493c9

Please sign in to comment.