]> granicus.if.org Git - python/commitdiff
Tuples and lists don't have a copy() method (yet?).
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 21 Jan 2003 22:57:53 +0000 (22:57 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 21 Jan 2003 22:57:53 +0000 (22:57 +0000)
Lib/plat-mac/EasyDialogs.py

index 119adfafb54d29c6d9cd69f9b5534e13a2a13d5c..1d670919846d75b7b8f3baf93e54e72d679c5a6f 100644 (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',)