| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -190,7 +190,7 @@ def load_from(self, fd): | |||
| 190 | 190 | def save(self, filename, encoding, lines=0): | |
| 191 | 191 | fd = os.open(filename, os.O_WRONLY | os.O_CREAT | os.TRUNC, | |
| 192 | 192 | stat.S_IRUSR | stat.S_IWUSR) | |
| 193 | - with io.open(filename, 'w', encoding=encoding, | ||
| 193 | + with io.open(fd, 'w', encoding=encoding, | ||
| 194 | 194 | errors='ignore') as hfile: | |
| 195 | 195 | with FileLock(hfile): | |
| 196 | 196 | self.save_to(hfile, self.entries, lines) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments