From: Guido van Rossum Date: Sat, 10 Feb 2007 22:53:17 +0000 (+0000) Subject: Random change to make this work unchanged when dict.keys() returns a dict view. X-Git-Tag: v3.0a1~1227 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e66dfcdc495218ad5f98b12ad6b4b2b05630ab0;p=python Random change to make this work unchanged when dict.keys() returns a dict view. --- diff --git a/setup.py b/setup.py index aa087a921a..3bd9d35f14 100644 --- a/setup.py +++ b/setup.py @@ -688,8 +688,7 @@ class PyBuildExt(build_ext): # ignore this header, it didn't contain a version number if db_setup_debug: print("db.h: unsupported version", db_ver, "in", d) - db_found_vers = db_ver_inc_map.keys() - db_found_vers.sort() + db_found_vers = sorted(db_ver_inc_map.keys()) while db_found_vers: db_ver = db_found_vers.pop()