Commit a0bc30f3 authored by Neal Norwitz's avatar Neal Norwitz

Remove another use of as as a keyword

parent 227b5339
...@@ -233,7 +233,7 @@ class TalkTo: ...@@ -233,7 +233,7 @@ class TalkTo:
"""Send 'activate' command""" """Send 'activate' command"""
self.send('misc', 'actv') self.send('misc', 'actv')
def _get(self, _object, as=None, _attributes={}): def _get(self, _object, asfile=None, _attributes={}):
"""_get: get data from an object """_get: get data from an object
Required argument: the object Required argument: the object
Keyword argument _attributes: AppleEvent attribute dictionary Keyword argument _attributes: AppleEvent attribute dictionary
...@@ -243,8 +243,8 @@ class TalkTo: ...@@ -243,8 +243,8 @@ class TalkTo:
_subcode = 'getd' _subcode = 'getd'
_arguments = {'----':_object} _arguments = {'----':_object}
if as: if asfile:
_arguments['rtyp'] = mktype(as) _arguments['rtyp'] = mktype(asfile)
_reply, _arguments, _attributes = self.send(_code, _subcode, _reply, _arguments, _attributes = self.send(_code, _subcode,
_arguments, _attributes) _arguments, _attributes)
...@@ -253,8 +253,8 @@ class TalkTo: ...@@ -253,8 +253,8 @@ class TalkTo:
if _arguments.has_key('----'): if _arguments.has_key('----'):
return _arguments['----'] return _arguments['----']
if as: if asfile:
item.__class__ = as item.__class__ = asfile
return item return item
get = _get get = _get
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment