Fix string format error in 2.6

In 2.6, you should give index value to format.
This commit is contained in:
limodou 2013-08-29 16:14:06 +08:00
parent 04c8ced2a7
commit a92308975b
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))