Changeset ff64a0fe in trunk
- Timestamp:
- 2013-03-19T00:34:57Z (12 years ago)
- Branches:
- master
- Children:
- 3e26c78
- Parents:
- 7130a24
- git-author:
- Brian Warner <warner@…> (2013-03-19 00:30:57)
- git-committer:
- Brian Warner <warner@…> (2013-03-19 00:34:57)
- Location:
- src/allmydata
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/allmydata/node.py ¶
r7130a24 rff64a0fe 280 280 fn = os.path.join(self.basedir, name) 281 281 try: 282 open(fn, mode).write(value)282 fileutil.write(fn, value, mode) 283 283 except EnvironmentError, e: 284 284 self.log("Unable to write config file '%s'" % fn) -
TabularUnified src/allmydata/util/fileutil.py ¶
r7130a24 rff64a0fe 256 256 move_into_place(target+".tmp", target) 257 257 258 def write(path, data ):259 wf = open(path, "wb")258 def write(path, data, mode="wb"): 259 wf = open(path, mode) 260 260 try: 261 261 wf.write(data)
Note: See TracChangeset
for help on using the changeset viewer.