From 6f6471270e9dad085a4e6a89af47390b2f3a763f Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Fri, 26 Sep 2008 10:54:58 -0400 Subject: [PATCH] Remove use of string.partition for python2.4 (atodorov). --- pykickstart/parser.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pykickstart/parser.py b/pykickstart/parser.py index 7529911..ee01983 100644 --- a/pykickstart/parser.py +++ b/pykickstart/parser.py @@ -547,7 +547,12 @@ class KickstartParser: args = None else: # Remove any end-of-line comments. - (h, s, t) = self._line.partition("#") + ind = self._line.find("#") + if (ind > -1): + h = self._line[:ind] + else: + h = self._line + self._line = h.rstrip() args = shlex.split(self._line) -- 2.11.4.GIT