Skip to content

Commit 91f8b79

Browse files
committed
python 2/3 compatible syntaxe in image_encoding_speed_test (fix #52)
1 parent 39d3cdf commit 91f8b79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/python_tests/image_encoding_speed_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def aerial_24():
113113
t = Timer(aerial_24)
114114
run(aerial_24, aerial_24_im, c, t)
115115

116-
for key, value in sorted(sortable.iteritems(), key=lambda k, v: (v, k)):
116+
for key, value in sorted(sortable.items(), key=lambda i: (i[1], i[0])):
117117
s = results[key]
118118
min_ = str(s[0])[:6]
119119
avg = str(s[1])[:6]

0 commit comments

Comments
 (0)