| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3cc83bf commit 1efdb5e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,7 +59,7 @@ def setFileURL_(self, url): | |||
| 59 | 59 | ||
| 60 | 60 | def writeToURL_ofType_error_(self, url, tp, err): | |
| 61 | 61 | path = url.fileSystemRepresentation() | |
| 62 | - # always use the same encoding we were read in with | ||
| 62 | + # always use the same encoding we were read in with (even if they deleted the '# encoding:' line) | ||
| 63 | 63 | with open(path, 'w', encoding=self.source_enc) as f: | |
| 64 | 64 | f.write(self.script._get_source()) | |
| 65 | 65 | return True, err | |
@@ -80,6 +80,7 @@ def updateChangeCount_(self, chg): | |||
| 80 | 80 | ||
| 81 | 81 | ## Autosave & restoration on re-launch | |
| 82 | 82 | ||
| 83 | + @classmethod | ||
| 83 | 84 | def autosavesInPlace(self): | |
| 84 | 85 | return get_default('autosave') | |
| 85 | 86 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments