/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 breezy/_static_tuple_py.py

  • Committer: Jelmer Vernooij
  • Date: 2018-02-18 21:42:57 UTC
  • mto: This revision was merged to the branch mainline in revision 6859.
  • Revision ID: jelmer@jelmer.uk-20180218214257-jpevutp1wa30tz3v
Update TODO to reference Breezy, not Bazaar.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
strings.
21
21
"""
22
22
 
 
23
from __future__ import absolute_import
 
24
 
23
25
import sys
24
26
 
25
27
 
42
44
        for bit in args:
43
45
            if type(bit) not in _valid_types:
44
46
                raise TypeError('StaticTuple can only point to'
45
 
                                ' StaticTuple, str, unicode, int, float, bool, or'
46
 
                                ' None not %s' % (type(bit),))
 
47
                    ' StaticTuple, str, unicode, int, float, bool, or'
 
48
                    ' None not %s' % (type(bit),))
47
49
        # We don't need to pass args to tuple.__init__, because that was
48
50
        # already handled in __new__.
49
51
        tuple.__init__(self)
74
76
 
75
77
 
76
78
_valid_types = (bytes, str, StaticTuple, int, float, None.__class__, bool)
 
79
if sys.version_info < (3,):
 
80
    _valid_types += (long, unicode)
77
81
 
78
82
 
79
83
# Have to set it to None first, so that __new__ can determine whether