]> granicus.if.org Git - python/commitdiff
One more macroman<->latin1 conversion victim.
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 23 May 2001 20:03:06 +0000 (20:03 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 23 May 2001 20:03:06 +0000 (20:03 +0000)
Mac/Tools/IDE/PyEdit.py

index fc8503aa9a1086700bfd00e94b5c455af0f73804..d968114b3f221c090de825e9eeb7b549b031cd07 100644 (file)
@@ -67,7 +67,7 @@ class Editor(W.Window):
                        else:
                                sourceOS = 'UNIX'
                                searchString = '\n'
-                       change = EasyDialogs.AskYesNoCancel('³%s² contains %s-style line feeds. '
+                       change = EasyDialogs.AskYesNoCancel('\96%s\94 contains %s-style line feeds. '
                                        'Change them to MacOS carriage returns?' % (self.title, sourceOS), 1)
                        # bug: Cancel is treated as No
                        if change > 0:
@@ -224,14 +224,14 @@ class Editor(W.Window):
                self.linefield.bind("<click>", self.clicklinefield)
        
        def makeoptionsmenu(self):
-               menuitems = [('Font settings\8a', self.domenu_fontsettings), 
-                               ("Save options\8a", self.domenu_options),
+               menuitems = [('Font settings\83', self.domenu_fontsettings), 
+                               ("Save options\83", self.domenu_options),
                                '-',
                                ('\0' + chr(self.run_as_main) + 'Run as __main__', self.domenu_toggle_run_as_main), 
                                #('\0' + chr(self.run_with_interpreter) + 'Run with Interpreter', self.domenu_toggle_run_with_interpreter), 
                                #'-',
                                ('Modularize', self.domenu_modularize),
-                               ('Browse namespace\8a', self.domenu_browsenamespace), 
+                               ('Browse namespace\83', self.domenu_browsenamespace), 
                                '-']
                if self.profiling:
                        menuitems = menuitems + [('Disable profiler', self.domenu_toggleprofiler)]
@@ -240,7 +240,7 @@ class Editor(W.Window):
                if self.editgroup.editor._debugger:
                        menuitems = menuitems + [('Disable debugger', self.domenu_toggledebugger),
                                ('Clear breakpoints', self.domenu_clearbreakpoints),
-                               ('Edit breakpoints\8a', self.domenu_editbreakpoints)]
+                               ('Edit breakpoints\83', self.domenu_editbreakpoints)]
                else:
                        menuitems = menuitems + [('Enable debugger', self.domenu_toggledebugger)]
                self.editgroup.optionsmenu.set(menuitems)
@@ -285,7 +285,7 @@ class Editor(W.Window):
        def domenu_modularize(self, *args):
                modname = _filename_as_modname(self.title)
                if not modname:
-                       raise W.AlertError, 'Can¹t modularize ³%s²' % self.title
+                       raise W.AlertError, 'CanÕt modularize \96%s\94' % self.title
                run_as_main = self.run_as_main
                self.run_as_main = 0
                self.run()
@@ -360,7 +360,7 @@ class Editor(W.Window):
                        import EasyDialogs
                        import Qd
                        Qd.InitCursor() # XXX should be done by dialog
-                       save = EasyDialogs.AskYesNoCancel('Save window ³%s² before closing?' % self.title, 1)
+                       save = EasyDialogs.AskYesNoCancel('Save window \96%s\94 before closing?' % self.title, 1)
                        if save > 0:
                                if self.domenu_save():
                                        return 1
@@ -420,7 +420,7 @@ class Editor(W.Window):
                        import buildtools
                except ImportError:
                        # only have buildtools in Python >= 1.5.2
-                       raise W.AlertError, "³Save as Applet² is only supported in\rPython 1.5.2 and up."
+                       raise W.AlertError, "\96Save as Applet\94 is only supported in\rPython 1.5.2 and up."
                
                buildtools.DEBUG = 0    # ouch.
                
@@ -504,7 +504,7 @@ class Editor(W.Window):
                        if self.editgroup.editor.changed:
                                import EasyDialogs
                                import Qd; Qd.InitCursor()
-                               save = EasyDialogs.AskYesNoCancel('Save ³%s² before running?' % self.title, 1)
+                               save = EasyDialogs.AskYesNoCancel('Save \96%s\94 before running?' % self.title, 1)
                                if save > 0:
                                        if self.domenu_save():
                                                return
@@ -560,23 +560,23 @@ class Editor(W.Window):
                                        classname = string.split(string.strip(line[6:]))[0]
                                        classend = identifieRE_match(classname)
                                        if classend < 1:
-                                               raise W.AlertError, 'Can¹t find a class.'
+                                               raise W.AlertError, 'CanÕt find a class.'
                                        classname = classname[:classend]
                                        break
                                elif line and line[0] not in '\t#':
-                                       raise W.AlertError, 'Can¹t find a class.'
+                                       raise W.AlertError, 'CanÕt find a class.'
                        else:
-                               raise W.AlertError, 'Can¹t find a class.'
+                               raise W.AlertError, 'CanÕt find a class.'
                        if globals.has_key(classname):
                                locals = globals[classname].__dict__
                        else:
-                               raise W.AlertError, 'Can¹t find class ³%s².' % classname
+                               raise W.AlertError, 'CanÕt find class \96%s\94.' % classname
                        # dedent to top level
                        for i in range(len(lines)):
                                lines[i] = lines[i][1:]
                        pytext = string.join(lines, '\r')
                elif indent > 0:
-                       raise W.AlertError, 'Can¹t run indented code.'
+                       raise W.AlertError, 'CanÕt run indented code.'
                
                # add "newlines" to fool compile/exec: 
                # now a traceback will give the right line number
@@ -839,7 +839,7 @@ class SearchEngine:
                self.buttons = [        ("Find",                "cmdf",  self.find), 
                                        ("Replace",          "cmdr",     self.replace), 
                                        ("Replace all",  None,   self.replaceall), 
-                                       ("Don¹t find",  "cmdd",  self.dont), 
+                                       ("DonÕt find",  "cmdd",  self.dont), 
                                        ("Cancel",            "cmd.",    self.cancel)
                                ]
                for i in range(len(self.buttons)):
@@ -848,7 +848,7 @@ class SearchEngine:
                        self.w[title] = W.Button(bounds, title, callback)
                        if shortcut:
                                self.w.bind(shortcut, self.w[title].push)
-               self.w.setdefaultbutton(self.w["Don¹t find"])
+               self.w.setdefaultbutton(self.w["DonÕt find"])
                self.w.find.edit.bind("<key>", self.key)
                self.w.bind("<activate>", self.activate)
                self.w.bind("<close>", self.close)
@@ -881,11 +881,11 @@ class SearchEngine:
                        else:
                                for title, cmd, call in self.buttons[:-2]:
                                        self.w[title].enable(0)
-                               self.w.setdefaultbutton(self.w["Don¹t find"])
+                               self.w.setdefaultbutton(self.w["DonÕt find"])
                else:
                        for title, cmd, call in self.buttons[:-2]:
                                self.w[title].enable(0)
-                       self.w.setdefaultbutton(self.w["Don¹t find"])
+                       self.w.setdefaultbutton(self.w["DonÕt find"])
        
        def find(self):
                self.getparmsfromwindow()
@@ -1204,7 +1204,7 @@ class _EditorDefaultSettings:
                self.template = "%s, %d point"
                self.fontsettings, self.tabsettings, self.windowsize = geteditorprefs()
                self.w = W.Dialog((328, 120), "Editor default settings")
-               self.w.setfontbutton = W.Button((8, 8, 80, 16), "Set font\8a", self.dofont)
+               self.w.setfontbutton = W.Button((8, 8, 80, 16), "Set font\83", self.dofont)
                self.w.fonttext = W.TextBox((98, 10, -8, 14), self.template % (self.fontsettings[0], self.fontsettings[2]))
                
                self.w.picksizebutton = W.Button((8, 50, 80, 16), "Front window", self.picksize)