Show More
@@ -105,7 +105,7 b' def pofile(fpath, **kwargs):' | |||||
105 | ... finally: |
|
105 | ... finally: | |
106 | ... os.unlink(tmpf) |
|
106 | ... os.unlink(tmpf) | |
107 | """ |
|
107 | """ | |
108 |
if kwargs.get('autodetect_encoding', True) |
|
108 | if kwargs.get('autodetect_encoding', True): | |
109 | enc = detect_encoding(fpath) |
|
109 | enc = detect_encoding(fpath) | |
110 | else: |
|
110 | else: | |
111 | enc = kwargs.get('encoding', default_encoding) |
|
111 | enc = kwargs.get('encoding', default_encoding) | |
@@ -159,7 +159,7 b' def mofile(fpath, **kwargs):' | |||||
159 | ... finally: |
|
159 | ... finally: | |
160 | ... os.unlink(tmpf) |
|
160 | ... os.unlink(tmpf) | |
161 | """ |
|
161 | """ | |
162 |
if kwargs.get('autodetect_encoding', True) |
|
162 | if kwargs.get('autodetect_encoding', True): | |
163 | enc = detect_encoding(fpath, True) |
|
163 | enc = detect_encoding(fpath, True) | |
164 | else: |
|
164 | else: | |
165 | enc = kwargs.get('encoding', default_encoding) |
|
165 | enc = kwargs.get('encoding', default_encoding) |
General Comments 0
You need to be logged in to leave comments.
Login now