removed with

Signed-off-by: Brian Coca <briancoca+dev@gmail.com>
reviewable/pr18780/r1
Brian Coca 11 years ago committed by Brian Coca
parent 5cb6b24546
commit 7873591ea0

@ -178,7 +178,7 @@ class SourcesList(object):
def load(self, file): def load(self, file):
group = [] group = []
with open(file, 'r') as f: f = open(file, 'r')
for n, line in enumerate(f): for n, line in enumerate(f):
valid, enabled, source, comment = self._parse(line) valid, enabled, source, comment = self._parse(line)
group.append((n, valid, enabled, source, comment)) group.append((n, valid, enabled, source, comment))
@ -191,7 +191,7 @@ class SourcesList(object):
fd, tmp_path = tempfile.mkstemp(prefix=".%s-" % fn, dir=d) fd, tmp_path = tempfile.mkstemp(prefix=".%s-" % fn, dir=d)
os.chmod(os.path.join(fd, tmp_path), 0644) os.chmod(os.path.join(fd, tmp_path), 0644)
with os.fdopen(fd, 'w') as f: f = os.fdopen(fd, 'w')
for n, valid, enabled, source, comment in sources: for n, valid, enabled, source, comment in sources:
chunks = [] chunks = []
if not enabled: if not enabled:

Loading…
Cancel
Save