Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2008-10-11 13:59:52 +0400
committerYann Leboulanger <asterix@lagaule.org>2008-10-11 13:59:52 +0400
commit196dd7e30a0b56597bc702b70cf1dcd2be666cb5 (patch)
tree6a176c0dc19c0f128cab1e15166ec1fcb0c3bab7 /test/lib
parent00543277e42142d9f74c405eef826fd20bf8edad (diff)
[thorstenp] use isinstance rather than type(x) == y. use sorted()
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/mock.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/lib/mock.py b/test/lib/mock.py
index c4a4e6332..0c2b6170a 100644
--- a/test/lib/mock.py
+++ b/test/lib/mock.py
@@ -228,8 +228,7 @@ class MockCall:
for p in self.params:
s = s + sep + repr(p)
sep = ', '
- items = self.kwparams.items()
- items.sort()
+ items = sorted(self.kwparams.items())
for k,v in items:
s = s + sep + k + '=' + repr(v)
sep = ', '