with open(fstab) as fstab_file:
- for line in (l.strip() for l in fstab_file):
- if line == "" or line.startswith("#"):
+ for stripped_line in (line.strip() for line in fstab_file):
+ if stripped_line == "" or stripped_line.startswith("#"): continue try:
- entry = FstabEntry.from_line(line)
+ entry = FstabEntry.from_line(stripped_line)
I see the following in the diff. Is this an intended change? I don't see any mention of it in the changelog or in this bug:
--- a/DistUpgrade/ apt_btrfs_ snapshot. py apt_btrfs_ snapshot. py
super( Fstab, self).__init__()
+++ b/DistUpgrade/
@@ -73,11 +73,11 @@ class Fstab(list):
with open(fstab) as fstab_file: ("#"): line.startswith ("#"):
continue
try: from_line( line) from_line( stripped_ line)
- for line in (l.strip() for l in fstab_file):
- if line == "" or line.startswith
+ for stripped_line in (line.strip() for line in fstab_file):
+ if stripped_line == "" or stripped_
- entry = FstabEntry.
+ entry = FstabEntry.