From: uberj Date: Tue, 22 May 2012 17:55:57 +0000 (-0700) Subject: This patch changes the parser to allow file names used in an $INCLUDE statement to... X-Git-Tag: v1.11.0~10^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee8ef8bef9d6b01bc2c66fa9aa49651f626ef306;p=thirdparty%2Fdnspython.git 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. --- diff --git a/dns/zone.py b/dns/zone.py index ac16ad35..404f8181 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():