]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
work around using "sorted" as a parameter name by using module "builtins"
authorBob Halley <halley@nominum.com>
Thu, 12 May 2011 10:51:06 +0000 (11:51 +0100)
committerBob Halley <halley@nominum.com>
Thu, 12 May 2011 10:51:06 +0000 (11:51 +0100)
dns/zone.py

index b4aa1b513fa6bf691bd4d30fad17a617a4f23706..bbb9b08eb07594d0e3cf987719a1480671005de5 100644 (file)
@@ -17,6 +17,7 @@
 
 from __future__ import generators
 
+import builtins
 import sys
 
 import dns.exception
@@ -473,7 +474,7 @@ class Zone(object):
             want_close = False
         try:
             if sorted:
-                names = sorted(self.keys())
+                names = builtins.sorted(self.keys())
             else:
                 names = self.keys()
             for n in names: