From 70e5c7576e5c0ac5da5c22dfdcb2fea2c3572cc9 Mon Sep 17 00:00:00 2001 From: Olav Vitters Date: Mon, 9 Feb 2015 13:14:20 +0100 Subject: more python3 fixes --- mgagnome | 6 +++--- 1 file 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 -- cgit v1.2.1