From e1c4f0b2006c06e5400ede67f2f77b9f1598c580 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 21 Jan 2003 22:57:53 +0000 Subject: [PATCH] Tuples and lists don't have a copy() method (yet?). --- Lib/plat-mac/EasyDialogs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',) -- 2.40.0