From ee8ef8bef9d6b01bc2c66fa9aa49651f626ef306 Mon Sep 17 00:00:00 2001 From: uberj Date: Tue, 22 May 2012 10:55:57 -0700 Subject: This patch changes the parser to allow file names used in an $INCLUDE statement to not have surrounding quotes. RFC 1035 doesn't explicitly say that the file name must be surrounded by quotes and bind supports the no quote format. --- dns/zone.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/dns/zone.py b/dns/zone.py index ac16ad3..404f818 100644 --- a/dns/zone.py +++ b/dns/zone.py @@ -682,8 +682,6 @@ class _MasterReader(object): self.zone.origin = self.current_origin elif u == '$INCLUDE' and self.allow_include: token = self.tok.get() - if not token.is_quoted_string(): - raise dns.exception.SyntaxError("bad filename in $INCLUDE") filename = token.value token = self.tok.get() if token.is_identifier(): -- cgit v1.2.1