Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
2ad9419c
Commit
2ad9419c
authored
Jul 12, 2002
by
Just van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor fixes, removed obsolete warning
parent
6b7d69d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
Mac/Tools/IDE/PyEdit.py
Mac/Tools/IDE/PyEdit.py
+3
-10
No files found.
Mac/Tools/IDE/PyEdit.py
View file @
2ad9419c
...
...
@@ -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
\
xd5
t 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
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment