Commit 066d83b
fix how we count line numbers
if the file is not encoded properly, reading it as text will
raise an exception.
this opens the file in binary mode, and uses a more compact way to
read the number of lines1 parent 0c95b65 commit 066d83b
1 file changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
| 293 | + | |
| 294 | + | |
298 | 295 | | |
299 | 296 | | |
300 | 297 | | |
| |||
0 commit comments