broken minimal merge...

This commit is contained in:
Ronald Oussoren 2009-09-06 13:07:26 +00:00
parent 796550559a
commit 2142aa8f04
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ def resource_pathname(pathname, verbose=0):
refno = Res.FSpOpenResFile(pathname, 1)
Res.CloseResFile(refno)
except (AttributeError, Res.Error), arg:
if instance(arg, AttributeError), or arg[0] in (-37, -39):
if isinstance(arg, AttributeError) or arg[0] in (-37, -39):
# No resource fork. We may be on OSX, and this may be either
# a data-fork based resource file or a AppleSingle file
# from the CVS repository.