From f8156cc9cce772d9e0e2e0bd57bde6116794e7e4 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 21 Jul 2005 18:32:41 +0000 Subject: [PATCH] Removed TupleSubclass, which wasn't being used. --- src/utils/python.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/utils/python.py b/src/utils/python.py index 3537c4ae2..16254ffc9 100644 --- a/src/utils/python.py +++ b/src/utils/python.py @@ -43,17 +43,6 @@ class Object(object): return not self == other -class TupleSubclass(type): - def __new__(cls, name, bases, dict): - assert tuple in bases - assert '__attrs__' in dict - for (i, attr) in enumerate(dict['__attrs__']): - dict[attr] = property(lambda self, i=i: self[i]) - del dict['__attrs__'] - # XXX Check the length of the iterable given. - return super(TupleSubclass, cls).__new__(cls, name, bases, dict) - - class Synchronized(type): METHODS = '__synchronized__' LOCK = '_Synchronized_rlock'