[Python-3000-checkins] r43222 - python/branches/p3yk/Lib/plat-mac/aetools.py

neal.norwitz python-3000-checkins at python.org
Wed Mar 22 10:34:46 CET 2006


Author: neal.norwitz
Date: Wed Mar 22 10:34:44 2006
New Revision: 43222

Modified:
   python/branches/p3yk/Lib/plat-mac/aetools.py
Log:
Remove another use of as as a keyword

Modified: python/branches/p3yk/Lib/plat-mac/aetools.py
==============================================================================
--- python/branches/p3yk/Lib/plat-mac/aetools.py	(original)
+++ python/branches/p3yk/Lib/plat-mac/aetools.py	Wed Mar 22 10:34:44 2006
@@ -233,7 +233,7 @@
         """Send 'activate' command"""
         self.send('misc', 'actv')
 
-    def _get(self, _object, as=None, _attributes={}):
+    def _get(self, _object, asfile=None, _attributes={}):
         """_get: get data from an object
         Required argument: the object
         Keyword argument _attributes: AppleEvent attribute dictionary
@@ -243,8 +243,8 @@
         _subcode = 'getd'
 
         _arguments = {'----':_object}
-        if as:
-            _arguments['rtyp'] = mktype(as)
+        if asfile:
+            _arguments['rtyp'] = mktype(asfile)
 
         _reply, _arguments, _attributes = self.send(_code, _subcode,
                 _arguments, _attributes)
@@ -253,8 +253,8 @@
 
         if _arguments.has_key('----'):
             return _arguments['----']
-            if as:
-                item.__class__ = as
+            if asfile:
+                item.__class__ = asfile
             return item
 
     get = _get


More information about the Python-3000-checkins mailing list