Tuples and lists don't have a copy() method (yet?).

This commit is contained in:
Jack Jansen 2003-01-21 22:57:53 +00:00
parent cd9a8b6bcf
commit e1c4f0b200
1 changed files with 1 additions and 1 deletions

View File

@ -576,7 +576,7 @@ def _process_Nav_args(dftflags, **args):
defaultLocation = Carbon.File.FSRef(defaultLocation)
args['defaultLocation'] = aepack.pack(defaultLocation)
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:
if 'TEXT' in typeList and not '\0\0\0\0' in typeList:
typeList = typeList + ('\0\0\0\0',)