[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-commits-diffs] net.venge.monotone: 10341aa0225aed8a9a2def5129
From: |
code |
Subject: |
[Monotone-commits-diffs] net.venge.monotone: 10341aa0225aed8a9a2def5129957935c19b38d2 |
Date: |
Mon, 14 Mar 2011 00:47:53 +0100 (CET) |
revision: 10341aa0225aed8a9a2def5129957935c19b38d2
date: 2011-03-13T23:47:38
author: Richard Levitte <address@hidden>
branch: net.venge.monotone
changelog:
* extra/mtn-hooks/monotone-ciabot.py, test/extra/buildbot/master.cfg:
Because the 'with' construction is very new in python, let's go back to
opening AND closing the file.
manifest:
format_version "1"
new_manifest [d3b1540b432d103e7f52d9a5563e23e8e2890067]
old_revision [b20a7c199ce2d223b1c86c23467ac9e7df43b2cf]
patch "extra/mtn-hooks/monotone-ciabot.py"
from [cdbe8ebfec575ae31b8dd62ce3ee8108edc19ab4]
to [cab2dce1a591101fbd86ffc9f07a91e42375591c]
patch "test/extra/buildbot/master.cfg"
from [279250eed8a67dd4e2bce8349c8c4a7b6376e69d]
to [2d224c4ba9b54bfb619dc1f48dbe7a42aa4512aa]
============================================================
--- extra/mtn-hooks/monotone-ciabot.py cdbe8ebfec575ae31b8dd62ce3ee8108edc19ab4
+++ extra/mtn-hooks/monotone-ciabot.py cab2dce1a591101fbd86ffc9f07a91e42375591c
@@ -110,9 +110,10 @@ class config:
def __init__(self, config_file):
s = ""
- with open(config_file) as f:
- for line in f:
- s = s + line
+ f = open(config_file)
+ for line in f:
+ s = s + line
+ f.close()
previous_key = ""
current_patterns = []
for key, value in parse_basic_io(s):
============================================================
--- test/extra/buildbot/master.cfg 279250eed8a67dd4e2bce8349c8c4a7b6376e69d
+++ test/extra/buildbot/master.cfg 2d224c4ba9b54bfb619dc1f48dbe7a42aa4512aa
@@ -22,8 +22,9 @@ class DumpPerspective(pb.ChangePerspecti
changedict["comments"],
changedict["files"]
]
- with open(test_output, "wb") as f:
- print >> f, interesting_changes
+ f = open(test_output, "wb")
+ print >> f, interesting_changes
+ f.close()
pb.ChangePerspective.perspective_addChange(self, changedict)
class DumpChangeSource(pb.PBChangeSource):
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Monotone-commits-diffs] net.venge.monotone: 10341aa0225aed8a9a2def5129957935c19b38d2,
code <=