From 65d3d9bc121880dc21a3233fd01854467866f3ac Mon Sep 17 00:00:00 2001 From: Amirouche Boubekki Date: Sun, 30 Sep 2012 21:48:58 +0200 Subject: [PATCH] use of iteritems to retrieve key and value --- jnius/jnius_export_class.pxi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jnius/jnius_export_class.pxi b/jnius/jnius_export_class.pxi index d652727..1a4d2e0 100644 --- a/jnius/jnius_export_class.pxi +++ b/jnius/jnius_export_class.pxi @@ -728,9 +728,8 @@ cdef class JavaMultipleMethod(object): else: methods = self.static_methods - for signature in methods: + for signature, jm in methods.iteritems(): sign_ret, sign_args = parse_definition(signature) - jm = methods[signature] if jm.is_varargs: args_ = args[:len(sign_args) - 1] + (args[len(sign_args) - 1:],) else: