[pypy-commit] pypy py3.3: use space.call_method over w_result.sort
numerodix
noreply at buildbot.pypy.org
Sat Aug 2 00:40:03 CEST 2014
Author: Martin Matusiak <numerodix at gmail.com>
Branch: py3.3
Changeset: r72644:2c73a529647b
Date: 2014-07-31 18:35 +0200
http://bitbucket.org/pypy/pypy/changeset/2c73a529647b/
Log: use space.call_method over w_result.sort
diff --git a/pypy/interpreter/module.py b/pypy/interpreter/module.py
--- a/pypy/interpreter/module.py
+++ b/pypy/interpreter/module.py
@@ -129,7 +129,7 @@
w__dict__ = space.getattr(self, space.wrap('__dict__'))
result = space.listview(w__dict__)
w_result = space.wrap(result)
- w_result.sort(False)
+ space.call_method(w_result, 'sort')
return w_result
except OperationError as e:
if e.match(space, space.w_AttributeError):
More information about the pypy-commit
mailing list