From: Bob Halley Date: Thu, 12 May 2011 10:51:06 +0000 (+0100) Subject: work around using "sorted" as a parameter name by using module "builtins" X-Git-Tag: v1.10.0-py3~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71e17a44934d92ca4cf18a6ee34716f25546a372;p=thirdparty%2Fdnspython.git work around using "sorted" as a parameter name by using module "builtins" --- diff --git a/dns/zone.py b/dns/zone.py index b4aa1b51..bbb9b08e 100644 --- a/dns/zone.py +++ b/dns/zone.py @@ -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: