From 422b5b122c92b2ff26a376ba89dea58ff79d84c9 Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Wed, 17 Sep 2014 17:50:31 +1000 Subject: [PATCH] Improves the help rendering for signatures.py --- jnius/signatures.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/jnius/signatures.py b/jnius/signatures.py index 89e6bff..785897d 100644 --- a/jnius/signatures.py +++ b/jnius/signatures.py @@ -40,15 +40,16 @@ from . import java_method ''' Type specifiers for primitives ''' -class _SignaturePrimitive(object): +class _JavaSignaturePrimitive(object): _spec = "" def _MakeSignaturePrimitive(name, spec): - class __Primitive(_SignaturePrimitive): + class __Primitive(_JavaSignaturePrimitive): ''' PyJnius signature for Java %s type ''' % name _name = name _spec = spec - __name__ = "j" + name + __Primitive.__name__ = "j" + name + return __Primitive jboolean = _MakeSignaturePrimitive("boolean", "Z")