From: Jack Jansen Date: Tue, 21 Jan 2003 22:57:53 +0000 (+0000) Subject: Tuples and lists don't have a copy() method (yet?). X-Git-Tag: v2.3c1~2372 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1c4f0b2006c06e5400ede67f2f77b9f1598c580;p=python Tuples and lists don't have a copy() method (yet?). --- diff --git a/Lib/plat-mac/EasyDialogs.py b/Lib/plat-mac/EasyDialogs.py index 119adfafb5..1d67091984 100644 --- a/Lib/plat-mac/EasyDialogs.py +++ b/Lib/plat-mac/EasyDialogs.py @@ -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',)