/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/_static_tuple_py.py

  • Committer: John Arbash Meinel
  • Date: 2009-10-27 03:39:16 UTC
  • mto: This revision was merged to the branch mainline in revision 4772.
  • Revision ID: john@arbash-meinel.com-20091027033916-ol3lz84kd2ts9h5b
Don't allow extra attributes on the pure-python StaticTuple.

Should save some memory as well.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
class StaticTuple(tuple):
25
25
    """A static type, similar to a tuple of strings."""
26
26
 
 
27
    __slots__ = ()
 
28
 
27
29
    def __new__(cls, *args):
28
30
        # Make the empty StaticTuple a singleton
29
31
        if not args and _empty_tuple is not None: