/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/symbol_versioning.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-24 04:24:57 UTC
  • mfrom: (4183.6.5 251352-re-compile)
  • Revision ID: pqm@pqm.ubuntu.com-20090324042457-53xouxxcxehxoi5v
(mbp) better error on bad regexps

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
17
"""Symbol versioning
18
18
 
41
41
    """Generate a message that something was deprecated in a release.
42
42
 
43
43
    >>> deprecated_in((1, 4, 0))
44
 
    '%s was deprecated in version 1.4.0.'
 
44
    '%s was deprecated in version 1.4.'
45
45
    """
46
46
    return ("%%s was deprecated in version %s."
47
47
            % bzrlib._format_version_tuple(version_tuple))
280
280
            return self._warn_deprecated(list.remove, value)
281
281
 
282
282
        def pop(self, index=None):
283
 
            """pop'ing from %s is deprecated""" % (variable_name,)
 
283
            """pop'ing from from %s is deprecated""" % (variable_name,)
284
284
            if index:
285
285
                return self._warn_deprecated(list.pop, index)
286
286
            else: