+2004-04-09 Bob Halley <halley@dnspython.org>
+
+ * dns/zone.py (_MasterReader._rr_line): The masterfile reader
+ erroneously treated lines starting with leading whitespace but
+ not having any RR definition as an error. It now treats
+ them like a blank line (which is not an error).
+
+2004-04-01 Bob Halley <halley@dnspython.org>
+
+ * (Version 1.3.0 released)
+
2004-03-19 Bob Halley <halley@dnspython.org>
* Added support for new DNSSEC types RRSIG, NSEC, and DNSKEY.
token = self.tok.get(want_leading = True)
if token[0] != dns.tokenizer.WHITESPACE:
self.last_name = dns.name.from_text(token[1], self.current_origin)
+ else:
+ token = self.tok.get()
+ if token[0] == dns.tokenizer.EOL or \
+ token[0] == dns.tokenizer.EOF:
+ # treat leading WS followed by EOL/EOF as if they were EOL/EOF.
+ return
+ self.tok.unget(token)
name = self.last_name
if not name.is_subdomain(self.zone.origin):
self._eat_line()
* MX 10 mail
a TXT "foo foo foo"
PTR foo.net.
+;; The next line not starting with ';;' is leading whitespace followed by
+;; EOL. We want to treat that as if EOL had appeared alone.
+
+;; The next line not starting with ';;' is leading whitespace followed by
+;; a comment followed by EOL. We want to treat that as if EOL had appeared
+;; alone.
+ ; foo
$TTL 3600 ; 1 hour
a01 A 0.0.0.0
a02 A 255.255.255.255