summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-08-06 00:11:12 -0400
committerChris McDonough <chrism@plope.com>2012-08-06 00:11:12 -0400
commit859e947aae832194e1a22905898be9ebe05b20ed (patch)
tree6ea9cbae62eab995c6ea7f2bda8c5ffa0b920f5a
parent88435e58b45b7c00387508bb2960f784d627bf00 (diff)
downloadpyramid-859e947aae832194e1a22905898be9ebe05b20ed.tar.gz
pyramid-859e947aae832194e1a22905898be9ebe05b20ed.tar.bz2
pyramid-859e947aae832194e1a22905898be9ebe05b20ed.zip
fix under py3
-rw-r--r--pyramid/config/__init__.py6
-rw-r--r--pyramid/tests/test_config/test_predicates.py2
2 files changed, 5 insertions, 3 deletions
diff --git a/pyramid/config/__init__.py b/pyramid/config/__init__.py
index 2fca7a162..7e6649c14 100644
--- a/pyramid/config/__init__.py
+++ b/pyramid/config/__init__.py
@@ -1084,7 +1084,8 @@ def resolveConflicts(actions):
other conflicting actions.
"""
- def orderandpos((n, v)):
+ def orderandpos(v):
+ n, v = v
if not isinstance(v, dict):
# old-style tuple action
v = expand_action(*v)
@@ -1092,7 +1093,8 @@ def resolveConflicts(actions):
sactions = sorted(enumerate(actions), key=orderandpos)
- def orderonly((n,v)):
+ def orderonly(v):
+ n, v = v
if not isinstance(v, dict):
# old-style tuple action
v = expand_action(*v)
diff --git a/pyramid/tests/test_config/test_predicates.py b/pyramid/tests/test_config/test_predicates.py
index 79dabd5d4..94e613715 100644
--- a/pyramid/tests/test_config/test_predicates.py
+++ b/pyramid/tests/test_config/test_predicates.py
@@ -203,7 +203,7 @@ class TestCustomPredicate(unittest.TestCase):
def test_text_func_repr(self):
pred = predicate()
inst = self._makeOne(pred)
- self.assertEqual(inst.text(), u'custom predicate: object predicate')
+ self.assertEqual(inst.text(), 'custom predicate: object predicate')
def test_phash(self):
pred = predicate()