summaryrefslogtreecommitdiff
path: root/geneticone/backend/flags.py
diff options
context:
space:
mode:
authornecoro <>2006-10-30 15:08:19 +0000
committernecoro <>2006-10-30 15:08:19 +0000
commitf5ffc16b3a80384f134c9b508a28ce3ba00eb48f (patch)
tree7a5c764fa028eb4a05e0cd6c0f4e539776bf11db /geneticone/backend/flags.py
parent0e5d5476cf83af44597d20da1889f429e622c0ca (diff)
downloadportato-f5ffc16b3a80384f134c9b508a28ce3ba00eb48f.tar.gz
portato-f5ffc16b3a80384f134c9b508a28ce3ba00eb48f.tar.bz2
portato-f5ffc16b3a80384f134c9b508a28ce3ba00eb48f.zip
Some documentation
Diffstat (limited to '')
-rw-r--r--geneticone/backend/flags.py10
1 files changed, 5 insertions, 5 deletions
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"""