From a92308975bb6822bd13333aaf4983eda93c8f503 Mon Sep 17 00:00:00 2001 From: limodou Date: Thu, 29 Aug 2013 16:14:06 +0800 Subject: [PATCH] Fix string format error in 2.6 In 2.6, you should give index value to format. --- jnius/jnius_localref.pxi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jnius/jnius_localref.pxi b/jnius/jnius_localref.pxi index 920168e..73619c4 100644 --- a/jnius/jnius_localref.pxi +++ b/jnius/jnius_localref.pxi @@ -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 ''.format( + return ''.format( self.obj, id(self))