]> granicus.if.org Git - python/commitdiff
Random change to make this work unchanged when dict.keys() returns a dict view.
authorGuido van Rossum <guido@python.org>
Sat, 10 Feb 2007 22:53:17 +0000 (22:53 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 10 Feb 2007 22:53:17 +0000 (22:53 +0000)
setup.py

index aa087a921af52c4b72ee8fabbe6458f116491221..3bd9d35f1405cd79cfa6345fb136bd99d0afa606 100644 (file)
--- 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()