Show More
@@ -18,6 +18,7 b'' | |||
|
18 | 18 | # RhodeCode Enterprise Edition, including its added features, Support services, |
|
19 | 19 | # and proprietary license terms, please see https://rhodecode.com/licenses/ |
|
20 | 20 | |
|
21 | import codecs | |
|
21 | 22 | import logging |
|
22 | 23 | import os |
|
23 | 24 | |
@@ -79,8 +80,9 b' def _write_mod_dav_svn_config(config, fi' | |||
|
79 | 80 | Write mod_dav_svn config to file. Log on exceptions but do not raise. |
|
80 | 81 | """ |
|
81 | 82 | try: |
|
82 |
with open(filepath, 'w') as f |
|
|
83 |
f |
|
|
83 | with codecs.open(filepath, 'w', encoding='utf-8') as f: | |
|
84 | f.write(config) | |
|
84 | 85 | except Exception: |
|
85 | 86 | log.exception( |
|
86 |
' |
|
|
87 | 'Exception while writing mod_dav_svn configuration to ' | |
|
88 | '"%s"', filepath) |
General Comments 0
You need to be logged in to leave comments.
Login now