~bzr/bzr/bzr.1.5

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: John Arbash Meinel
  • Date: 2008-05-16 16:54:44 UTC
  • mto: This revision was merged to the branch mainline in revision 3423.
  • Revision ID: john@arbash-meinel.com-20080516165444-p55ebidnm1oc469p
Cherrypick the deprecation suppression for 1.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
824
824
    import bzrlib.ui
825
825
    from bzrlib.ui.text import TextUIFactory
826
826
    bzrlib.ui.ui_factory = TextUIFactory()
 
827
     
 
828
    # Is this a final release version? If so, we should suppress warnings
 
829
    if bzrlib.version_info[3] == 'final':
 
830
        from bzrlib import symbol_versioning
 
831
        symbol_versioning.suppress_deprecation_warnings()
827
832
    try:
828
833
        argv = [a.decode(bzrlib.user_encoding) for a in argv[1:]]
829
834
    except UnicodeDecodeError: