]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Remove debugging prints from xfr code.
authorBob Halley <halley@dnspython.org>
Sun, 23 May 2021 12:04:58 +0000 (05:04 -0700)
committerBob Halley <halley@dnspython.org>
Sun, 23 May 2021 12:04:58 +0000 (05:04 -0700)
dns/xfr.py

index 0e0fb2d1c415bd861556e761cdbed529b9be66d5..cf9a163ead9f9abbe13d482922f6a9825f83a12d 100644 (file)
@@ -125,8 +125,6 @@ class Inbound:
                 elif dns.serial.Serial(self.soa_rdataset[0].serial) < \
                      self.serial:
                     # It went backwards!
-                    print(dns.serial.Serial(self.soa_rdataset[0].serial),
-                          self.serial)
                     raise SerialWentBackwards
                 else:
                     if self.is_udp and len(message.answer[answer_index:]) == 0:
@@ -310,7 +308,6 @@ def extract_serial_from_query(query):
         return None
     elif question.rdtype != dns.rdatatype.IXFR:
         raise ValueError("query is not an AXFR or IXFR")
-    print(question.name, question.rdclass)
     soa = query.find_rrset(query.authority, question.name, question.rdclass,
                            dns.rdatatype.SOA)
     return soa[0].serial