/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: Canonical.com Patch Queue Manager
  • Date: 2009-10-27 13:32:56 UTC
  • mfrom: (4771.1.1 2.1-pure-static-tuple)
  • Revision ID: pqm@pqm.ubuntu.com-20091027133256-ppg47nq6cvqdycze
(jam) Use __slots__ for the pure-python StaticTuple

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: