summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2015-02-09 13:14:20 +0100
committerOlav Vitters <olav@vitters.nl>2015-02-09 13:14:20 +0100
commit70e5c7576e5c0ac5da5c22dfdcb2fea2c3572cc9 (patch)
treef137c9fb1a4ccafbf050e8629c9a3b22e06b85d0
parentcdb2cc955da8ae4f07df281f02357466150d5290 (diff)
downloadmgagnome-70e5c7576e5c0ac5da5c22dfdcb2fea2c3572cc9.tar
mgagnome-70e5c7576e5c0ac5da5c22dfdcb2fea2c3572cc9.tar.gz
mgagnome-70e5c7576e5c0ac5da5c22dfdcb2fea2c3572cc9.tar.bz2
mgagnome-70e5c7576e5c0ac5da5c22dfdcb2fea2c3572cc9.tar.xz
mgagnome-70e5c7576e5c0ac5da5c22dfdcb2fea2c3572cc9.zip
more python3 fixes
-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