mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Removed TupleSubclass, which wasn't being used.
This commit is contained in:
parent
17afef9c30
commit
f8156cc9cc
@ -43,17 +43,6 @@ class Object(object):
|
|||||||
return not self == other
|
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):
|
class Synchronized(type):
|
||||||
METHODS = '__synchronized__'
|
METHODS = '__synchronized__'
|
||||||
LOCK = '_Synchronized_rlock'
|
LOCK = '_Synchronized_rlock'
|
||||||
|
Loading…
Reference in New Issue
Block a user