From 718e09c6897666b804e7e39b8f4bd5cd9eb030a7 Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Mon, 27 Aug 2007 16:03:55 +0000 Subject: Avoid exporting the metaclass, just define it where it will be used. 2007-08-27 Johan Dahlin * gobject/propertyhelper.py (property.__metaclass__.__repr__): Avoid exporting the metaclass, just define it where it will be used. svn path=/trunk/; revision=700 --- gobject/propertyhelper.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'gobject') diff --git a/gobject/propertyhelper.py b/gobject/propertyhelper.py index cc987ec..9fd0413 100644 --- a/gobject/propertyhelper.py +++ b/gobject/propertyhelper.py @@ -33,11 +33,6 @@ from gobject.constants import \ G_MAXULONG -class PropertyMeta(type): - def __repr__(self): - return "" - - class property(object): """ Creates a new property which in conjunction with GObjectMeta will @@ -53,7 +48,9 @@ class property(object): 'value' """ - __metaclass__ = PropertyMeta + class __metaclass__(type): + def __repr__(self): + return "" def __init__(self, getter=None, setter=None, type=None, default=None, nick='', blurb='', flags=_gobject.PARAM_READWRITE, -- cgit