]> granicus.if.org Git - python/commitdiff
Fix two errors that prevented "make libinstall" from working:
authorGuido van Rossum <guido@python.org>
Mon, 17 Apr 2006 23:13:00 +0000 (23:13 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 17 Apr 2006 23:13:00 +0000 (23:13 +0000)
- a line indented with tabs;
- a function named 'as'.

Lib/idlelib/WindowList.py
Lib/plat-mac/lib-scriptpackages/StdSuites/AppleScript_Suite.py

index d0123d88ba41be3b6ca326126097c1a7a0f9aadd..2fad998da1f1f5309674a6fdfe66ebd1592a2e44 100644 (file)
@@ -45,7 +45,7 @@ class WindowList:
             try:
                 callback()
             except:
-               t, v, tb = sys.exc_info()
+                t, v, tb = sys.exc_info()
                 print "warning: callback failed in WindowList", t, ":", v
 
 registry = WindowList()
index 574043d4a4ba56a3dc6a919e4a2a06eb50deb825..5d02ea3129dc3941e93f5a04f24fbcfbc867e899 100644 (file)
@@ -300,8 +300,8 @@ class AppleScript_Suite_Events:
         if _arguments.has_key('----'):
             return _arguments['----']
 
-    def as(self, _object, _attributes={}, **_arguments):
-        """as: Coercion
+    def as_(self, _object, _attributes={}, **_arguments):
+        """as_: Coercion
         Required argument: an AE object reference
         Keyword argument _attributes: AppleEvent attribute dictionary
         Returns: anything