(fd_readline)
| 142 | |
| 143 | |
| 144 | def find_encoding_py2(fd_readline): |
| 145 | m = ENCODING_REGEX.match(fd_readline()) |
| 146 | if not m: |
| 147 | m = ENCODING_REGEX.match(fd_readline()) |
| 148 | if not m: |
| 149 | return "utf-8" |
| 150 | else: |
| 151 | return m.groupdict()["encoding"] |
| 152 | |
| 153 | |
| 154 | def get_encoding(path): |