[PyObjC-svn] r2583 - in trunk/pyobjc/pyobjc-core: . Modules/objc
[email protected] Sun, 15 Aug 2010 15:12:41 -0500
| Newsgroups | gmane.comp.python.pyobjc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: ronaldoussoren
Date: Sun Aug 15 15:12:41 2010
New Revision: 2583
Log:
Fix lame bug in FSRef.from_pathname: the C implmentation was missing
the 'self' argument, which caused this class method to always raise
a TypeError.
Modified:
trunk/pyobjc/pyobjc-core/Modules/objc/fsref.m
trunk/pyobjc/pyobjc-core/NEWS.txt
Modified: trunk/pyobjc/pyobjc-core/Modules/objc/fsref.m
==============================================================================
--- trunk/pyobjc/pyobjc-core/Modules/objc/fsref.m (original)
+++ trunk/pyobjc/pyobjc-core/Modules/objc/fsref.m Sun Aug 15 15:12:41 2010
@@ -81,7 +81,7 @@
strlen((char*)buffer), NULL);
}
-static PyObject* fsref_from_path(PyObject* path)
+static PyObject* fsref_from_path(PyObject* self, PyObject* path)
{
PyObject* value;
FSRef result;
Modified: trunk/pyobjc/pyobjc-core/NEWS.txt
==============================================================================
--- trunk/pyobjc/pyobjc-core/NEWS.txt (original)
+++ trunk/pyobjc/pyobjc-core/NEWS.txt Sun Aug 15 15:12:41 2010
@@ -10,6 +10,9 @@
- ``objc.allocateBuffer`` now returns a bytearray on python >= 2.6,
it used to return a buffer object in Python 2.
+- ``objc.FSRef.from_pathname`` actually works instead of always raising
+ a TypeError.
+
Version 2.3
-----------
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev