Merge pull request #72 from limodou/patch-1

Fix string format error in 2.6
This commit is contained in:
Mathieu Virbel 2013-10-25 07:14:49 -07:00
commit 9d7c90135b
1 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,3 @@
cdef class LocalRef:
cdef jobject obj
@ -16,7 +15,7 @@ cdef class LocalRef:
self.obj = env[0].NewGlobalRef(env, obj)
def __repr__(self):
return '<LocalRef obj=0x{:x} at 0x{:x}>'.format(
return '<LocalRef obj=0x{0:x} at 0x{1:x}>'.format(
<long><void *>self.obj, id(self))