Kaydet (Commit) e1c4f0b2 authored tarafından Jack Jansen's avatar Jack Jansen

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

üst cd9a8b6b
......@@ -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',)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment