diff options
author | Olav Vitters <olav@vitters.nl> | 2015-02-09 13:14:20 +0100 |
---|---|---|
committer | Olav Vitters <olav@vitters.nl> | 2015-02-09 13:14:20 +0100 |
commit | 70e5c7576e5c0ac5da5c22dfdcb2fea2c3572cc9 (patch) | |
tree | f137c9fb1a4ccafbf050e8629c9a3b22e06b85d0 | |
parent | cdb2cc955da8ae4f07df281f02357466150d5290 (diff) | |
download | mgagnome-70e5c7576e5c0ac5da5c22dfdcb2fea2c3572cc9.tar mgagnome-70e5c7576e5c0ac5da5c22dfdcb2fea2c3572cc9.tar.gz mgagnome-70e5c7576e5c0ac5da5c22dfdcb2fea2c3572cc9.tar.bz2 mgagnome-70e5c7576e5c0ac5da5c22dfdcb2fea2c3572cc9.tar.xz mgagnome-70e5c7576e5c0ac5da5c22dfdcb2fea2c3572cc9.zip |
more python3 fixes
-rwxr-xr-x | mgagnome | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |