~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/static_tuple.py

  • Committer: John Arbash Meinel
  • Date: 2009-11-02 17:39:39 UTC
  • mto: (4668.1.3 2.1.0b2)
  • mto: This revision was merged to the branch mainline in revision 4782.
  • Revision ID: john@arbash-meinel.com-20091102173939-ygeujjd6rfp5kais
Review feedback, add a docstring that we want to get rid of this eventually.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
    Cast it if necessary, but if the 'static_tuple' debug flag is set, raise an
33
33
    error instead.
 
34
 
 
35
    As apis are improved, we will probably eventually stop calling this as it
 
36
    adds overhead we shouldn't need.
34
37
    """
35
38
    if 'static_tuple' not in debug.debug_flags:
36
39
        return StaticTuple.from_sequence(obj)