[pypy-commit] pypy py3k: simplify
pjenvey
noreply at buildbot.pypy.org
Sun Aug 3 21:56:39 CEST 2014
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r72675:895497f3e839
Date: 2014-08-03 10:56 -0700
http://bitbucket.org/pypy/pypy/changeset/895497f3e839/
Log: simplify
diff --git a/pypy/module/__builtin__/app_inspect.py b/pypy/module/__builtin__/app_inspect.py
--- a/pypy/module/__builtin__/app_inspect.py
+++ b/pypy/module/__builtin__/app_inspect.py
@@ -39,9 +39,7 @@
if len(args) > 1:
raise TypeError("dir expected at most 1 arguments, got %d" % len(args))
if len(args) == 0:
- local_names = list(_caller_locals().keys()) # 2 stackframes away
- local_names.sort()
- return local_names
+ return sorted(_caller_locals().keys()) # 2 stackframes away
import types
obj = args[0]
More information about the pypy-commit
mailing list