Rev 5018: (mbp) Remove deprecated code in file:///home/pqm/archives/thelove/bzr/%2Btrunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Wed Feb 10 01:19:42 GMT 2010
At file:///home/pqm/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 5018 [merge]
revision-id: pqm at pqm.ubuntu.com-20100210011938-zhn0c9wwvcipj5mm
parent: pqm at pqm.ubuntu.com-20100209142113-o8yqxlo2kqgp98q0
parent: mbp at canonical.com-20100210002839-tn92bhjk7g6bisb5
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Wed 2010-02-10 01:19:38 +0000
message:
(mbp) Remove deprecated code
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/commands.py bzr.py-20050309040720-d10f4714595cf8c3
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
=== modified file 'NEWS'
--- a/NEWS 2010-02-09 13:42:41 +0000
+++ b/NEWS 2010-02-10 00:28:39 +0000
@@ -37,9 +37,15 @@
(Vincent Ladeuil, #516934)
* Network transfer amounts and rates are now displayed in SI units according
- to the Ubuntu Units Policy, https://wiki.ubuntu.com/UnitsPolicy.
+ to the Ubuntu Units Policy <https://wiki.ubuntu.com/UnitsPolicy>.
(Gordon Tyler, #514399)
+API Changes
+***********
+
+* Remove unused ``CommandFailed`` exception.
+ (Martin Pool)
+
Testing
*******
=== modified file 'bzrlib/commands.py'
--- a/bzrlib/commands.py 2010-01-11 13:15:01 +0000
+++ b/bzrlib/commands.py 2010-02-09 19:45:18 +0000
@@ -186,23 +186,6 @@
return plugin_cmds.keys()
- at deprecated_function(deprecated_in((1, 17, 0)))
-def get_all_cmds(plugins_override=False):
- """Return canonical name and class for most commands.
-
- NB: This does not return all commands since the introduction of
- command hooks, and returning the class is not sufficient to
- get correctly setup commands, which is why it is deprecated.
-
- Use 'all_command_names' + 'get_cmd_object' instead.
- """
- d = _builtin_commands()
- if plugins_override:
- d.update(plugin_cmds.iteritems())
- for k, v in d.iteritems():
- yield k,v
-
-
def get_cmd_object(cmd_name, plugins_override=True):
"""Return the command object for a command.
@@ -624,10 +607,6 @@
def run_argv_aliases(self, argv, alias_argv=None):
"""Parse the command line and run with extra aliases in alias_argv."""
- if argv is None:
- warn("Passing None for [] is deprecated from bzrlib 0.10",
- DeprecationWarning, stacklevel=2)
- argv = []
args, opts = parse_args(self, argv, alias_argv)
# Process the standard options
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py 2010-02-05 12:13:07 +0000
+++ b/bzrlib/tests/__init__.py 2010-02-09 19:45:38 +0000
@@ -702,10 +702,6 @@
"""
-class CommandFailed(Exception):
- pass
-
-
class StringIOWrapper(object):
"""A wrapper around cStringIO which just adds an encoding attribute.
More information about the bazaar-commits
mailing list