mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Remove another use of as as a keyword
This commit is contained in:
parent
227b5339ed
commit
a0bc30f36f
1 changed files with 5 additions and 5 deletions
|
|
@ -233,7 +233,7 @@ class TalkTo:
|
|||
"""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 @@ class TalkTo:
|
|||
_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 @@ class TalkTo:
|
|||
|
||||
if _arguments.has_key('----'):
|
||||
return _arguments['----']
|
||||
if as:
|
||||
item.__class__ = as
|
||||
if asfile:
|
||||
item.__class__ = asfile
|
||||
return item
|
||||
|
||||
get = _get
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue