mirror of
https://github.com/python/cpython.git
synced 2025-11-27 05:44:16 +00:00
Tuples and lists don't have a copy() method (yet?).
This commit is contained in:
parent
cd9a8b6bcf
commit
e1c4f0b200
1 changed files with 1 additions and 1 deletions
|
|
@ -576,7 +576,7 @@ def _process_Nav_args(dftflags, **args):
|
||||||
defaultLocation = Carbon.File.FSRef(defaultLocation)
|
defaultLocation = Carbon.File.FSRef(defaultLocation)
|
||||||
args['defaultLocation'] = aepack.pack(defaultLocation)
|
args['defaultLocation'] = aepack.pack(defaultLocation)
|
||||||
if args.has_key('typeList') and not isinstance(args['typeList'], Carbon.Res.ResourceType):
|
if args.has_key('typeList') and not isinstance(args['typeList'], Carbon.Res.ResourceType):
|
||||||
typeList = args['typeList'].copy()
|
typeList = args['typeList'][:]
|
||||||
# Workaround for OSX typeless files:
|
# Workaround for OSX typeless files:
|
||||||
if 'TEXT' in typeList and not '\0\0\0\0' in typeList:
|
if 'TEXT' in typeList and not '\0\0\0\0' in typeList:
|
||||||
typeList = typeList + ('\0\0\0\0',)
|
typeList = typeList + ('\0\0\0\0',)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue