Changeset 3d4b9f518406…
Parent eb59704f5410…
by
Changes to 3 files · Browse files at 3d4b9f518406 Showing diff from parent eb59704f5410 Diff from another changeset...
@@ -902,7 +902,7 @@ for fn in rcpath:
# Try to create a file from rcpath
try:
- f = open(fn, 'wb')
+ f = open(fn, 'w')
f.write('# Generated by TortoiseHg setting dialog\n')
f.close()
break
|
@@ -1142,7 +1142,7 @@ for fn in rcpath:
# Try to create a file from rcpath
try:
- f = open(fn, 'wb')
+ f = open(fn, 'w')
f.write('# Generated by TortoiseHg\n')
f.close()
break
|
@@ -233,7 +233,7 @@
def writefile(config, path):
"""Write the given config obj to the specified file"""
- f = util.atomictempfile(os.path.realpath(path))
+ f = util.atomictempfile(os.path.realpath(path), 'w')
try:
config.write(f)
f.rename()
|
Loading...