From 08191e37de393715bb95bc7edfa625afb8c93938 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Tue, 25 Mar 2008 10:59:40 -0400 Subject: [PATCH] Support end-of-line comments. --- pykickstart/parser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pykickstart/parser.py b/pykickstart/parser.py index 03b007a..c25fcef 100644 --- a/pykickstart/parser.py +++ b/pykickstart/parser.py @@ -535,6 +535,9 @@ class KickstartParser: else: args = None else: + # Remove any end-of-line comments. + (h, s, t) = self._line.partition("#") + self._line = h.rstrip() args = shlex.split(self._line) if args and args[0] == "%include": -- 2.11.4.GIT