From f5ffc16b3a80384f134c9b508a28ce3ba00eb48f Mon Sep 17 00:00:00 2001 From: necoro <> Date: Mon, 30 Oct 2006 15:08:19 +0000 Subject: Some documentation --- geneticone/backend/flags.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'geneticone/backend') diff --git a/geneticone/backend/flags.py b/geneticone/backend/flags.py index 479b212..8d4ec0a 100644 --- a/geneticone/backend/flags.py +++ b/geneticone/backend/flags.py @@ -68,9 +68,9 @@ def get_data(pkg, path): crit = fl[0] fl = fl[1:] # stop after first comment - for i in range(len(fl)): - if fl[i][0] == "#": # comment - stop here - fl = fl[:i] + for j in range(len(fl)): + if fl[j][0] == "#": # comment - stop here + fl = fl[:j] break flags.append((file,line,crit,fl)) @@ -342,8 +342,8 @@ new_unmasked = {} def set_masked (pkg, masked = True): """Sets the masking status of the package. - @param cpv: the package from which to get the flags - @type cpv: string (cpv) or L{backend.Package}-object + @param pkg: the package from which to get the flags + @type pkg: string (cpv) or L{backend.Package}-object @param masked: if True: mask it; if False: unmask it @type masked: boolean""" -- cgit v1.2.3-70-g09d2