summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmgagnome6
1 files changed, 3 insertions, 3 deletions
diff --git a/mgagnome b/mgagnome
index c77f6d6..5857803 100755
--- a/mgagnome
+++ b/mgagnome
@@ -361,7 +361,7 @@ class SpecFile(object):
]
made_changes = False
- with open(self.path, "rw") as f:
+ with open(self.path, "r") as f:
data = f.read()
for reason, change_to, regexp in re_clean_spec:
if change_to is None:
@@ -539,7 +539,7 @@ class SpecFile(object):
def remove_patch(self, nr):
nrs = [str(nr)]
if nr == 0: nrs.append('')
- with open(self.path, "rw") as f:
+ with open(self.path, "r") as f:
data = f.read()
len_before=len(data)
@@ -655,7 +655,7 @@ class SpecFile(object):
# XXX - doesn't handle buildrequires with version numbers :-(
made_changes = False
- with open(self.path, "rw") as f:
+ with open(self.path, "r") as f:
data = f.read()
data_before=data