1
# Copyright (C) 2006, 2007, 2008, 2009 Canonical Ltd
1
# Copyright (C) 2006, 2007, 2008 Canonical Ltd
2
# Authors: Robert Collins <robert.collins@canonical.com> and others
3
4
# This program is free software; you can redistribute it and/or modify
4
5
# it under the terms of the GNU General Public License as published by
13
14
# You should have received a copy of the GNU General Public License
14
15
# along with this program; if not, write to the Free Software
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
18
"""Symbol versioning
37
61
DEPRECATED_PARAMETER = "A deprecated parameter marker."
62
zero_seven = "%s was deprecated in version 0.7."
63
zero_eight = "%s was deprecated in version 0.8."
64
zero_nine = "%s was deprecated in version 0.9."
65
zero_ten = "%s was deprecated in version 0.10."
66
zero_eleven = "%s was deprecated in version 0.11."
67
zero_twelve = "%s was deprecated in version 0.12."
68
zero_thirteen = "%s was deprecated in version 0.13."
69
zero_fourteen = "%s was deprecated in version 0.14."
70
zero_fifteen = "%s was deprecated in version 0.15."
71
zero_sixteen = "%s was deprecated in version 0.16."
72
zero_seventeen = "%s was deprecated in version 0.17."
73
zero_eighteen = "%s was deprecated in version 0.18."
74
zero_ninety = "%s was deprecated in version 0.90."
75
zero_ninetyone = "%s was deprecated in version 0.91."
76
zero_ninetytwo = "%s was deprecated in version 0.92."
77
one_zero = "%s was deprecated in version 1.0."
78
zero_ninetythree = one_zero # Maintained for backwards compatibility
79
one_one = "%s was deprecated in version 1.1."
80
one_two = "%s was deprecated in version 1.2."
81
one_three = "%s was deprecated in version 1.3."
82
one_four = "%s was deprecated in version 1.4."
83
one_five = "%s was deprecated in version 1.5."
84
one_six = "%s was deprecated in version 1.6."
40
87
def deprecated_in(version_tuple):
280
327
return self._warn_deprecated(list.remove, value)
282
329
def pop(self, index=None):
283
"""pop'ing from %s is deprecated""" % (variable_name,)
330
"""pop'ing from from %s is deprecated""" % (variable_name,)
285
332
return self._warn_deprecated(list.pop, index)