diff options
author | Just van Rossum <just@letterror.com> | 2002-07-12 12:06:17 (GMT) |
---|---|---|
committer | Just van Rossum <just@letterror.com> | 2002-07-12 12:06:17 (GMT) |
commit | 2ad9419c8f14652170858cfd42b1638af116ba5e (patch) | |
tree | e61bde09332fb688c580b705730afe9767eaed80 /Mac | |
parent | 6b7d69d9b408f199dca2c3d94ff2326636c19e50 (diff) | |
download | cpython-2ad9419c8f14652170858cfd42b1638af116ba5e.zip cpython-2ad9419c8f14652170858cfd42b1638af116ba5e.tar.gz cpython-2ad9419c8f14652170858cfd42b1638af116ba5e.tar.bz2 |
minor fixes, removed obsolete warning
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/Tools/IDE/PyEdit.py | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Mac/Tools/IDE/PyEdit.py b/Mac/Tools/IDE/PyEdit.py index 786f0f6..ed234d3 100644 --- a/Mac/Tools/IDE/PyEdit.py +++ b/Mac/Tools/IDE/PyEdit.py @@ -10,6 +10,7 @@ import MacOS from Carbon import Win from Carbon import Res from Carbon import Evt +from Carbon import Qd import os import imp import sys @@ -365,7 +366,6 @@ class Editor(W.Window): def close(self): if self.editgroup.editor.changed: import EasyDialogs - from Carbon import Qd Qd.InitCursor() save = EasyDialogs.AskYesNoCancel('Save window "%s" before closing?' % self.title, default=1, no="Don\xd5t save") @@ -509,7 +509,7 @@ class Editor(W.Window): if self.run_with_interpreter: if self.editgroup.editor.changed: import EasyDialogs - import Qd; Qd.InitCursor() + Qd.InitCursor() save = EasyDialogs.AskYesNoCancel('Save "%s" before running?' % self.title, 1) if save > 0: if self.domenu_save(): @@ -520,16 +520,9 @@ class Editor(W.Window): raise W.AlertError, "Can't run unsaved file" self._run_with_interpreter() elif self.run_with_cl_interpreter: - # Until universal newline support - if self._eoln != '\n': - import EasyDialogs - ok = EasyDialogs.AskYesNoCancel('Warning: "%s" does not have Unix line-endings' - % self.title, 1, yes='OK', no='') - if not ok: - return if self.editgroup.editor.changed: import EasyDialogs - import Qd; Qd.InitCursor() + Qd.InitCursor() save = EasyDialogs.AskYesNoCancel('Save "%s" before running?' % self.title, 1) if save > 0: if self.domenu_save(): |