]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
broken minimal merge...
authorRonald Oussoren <ronaldoussoren@mac.com>
Sun, 6 Sep 2009 13:07:26 +0000 (13:07 +0000)
committerRonald Oussoren <ronaldoussoren@mac.com>
Sun, 6 Sep 2009 13:07:26 +0000 (13:07 +0000)
Lib/plat-mac/macresource.py

index 52e3e89952ac23eee856cde92acad0399abded89..bb9e2d9410a37c9eb2ea119548b4b4613264c8c3 100644 (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.