Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r60101:4cb5a3adc59e
Date: 2013-01-15 12:27 -0800
http://bitbucket.org/pypy/pypy/changeset/4cb5a3adc59e/

Log:    fix sorted's default now that sort is stricter

diff --git a/pypy/module/__builtin__/app_functional.py 
b/pypy/module/__builtin__/app_functional.py
--- a/pypy/module/__builtin__/app_functional.py
+++ b/pypy/module/__builtin__/app_functional.py
@@ -5,7 +5,7 @@
 
 # ____________________________________________________________
 
-def sorted(lst, key=None, reverse=None):
+def sorted(lst, key=None, reverse=False):
     "sorted(iterable, key=None, reverse=False) --> new sorted list"
     sorted_lst = list(lst)
     sorted_lst.sort(key=key, reverse=reverse)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to