Skip to content

Commit 532bfd9

Browse files
committed
more python 3 changes needed — why in this merge though??
1 parent e09e470 commit 532bfd9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

hubblestack/utils/signing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
import re
4444
import json
4545
import inspect
46-
import cStringIO
46+
import io as cStringIO
4747

4848
from collections import OrderedDict, namedtuple
4949

tests/unittests/test_pulsar.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,10 @@ def assert_len_listify_is(list_arg, expected):
243243

244244
def assert_str_listify_is(list_arg, expected):
245245
""" compact comparifier """
246-
assert str(sorted(listify_fn(list_arg))) == str(sorted(expected))
246+
def boo(x):
247+
return str(x)
248+
249+
assert str(sorted(listify_fn(list_arg), key=boo)) == str(sorted(expected, key=boo))
247250

248251
assert_len_listify_is(None, 0)
249252
assert_len_listify_is([None], 0)

0 commit comments

Comments
 (0)