Rev 4421: Add a compatibility thunk for bzrlib.util.bencode (bug #385212) in http://bazaar.launchpad.net/~jameinel/bzr/1.16-bencode-compat-385212

John Arbash Meinel john at arbash-meinel.com
Tue Jun 9 15:18:50 BST 2009


At http://bazaar.launchpad.net/~jameinel/bzr/1.16-bencode-compat-385212

------------------------------------------------------------
revno: 4421
revision-id: john at arbash-meinel.com-20090609141841-3c01lqijv35v1hkt
parent: pqm at pqm.ubuntu.com-20090609074559-97mi1flqtxzh6aj3
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 1.16-bencode-compat-385212
timestamp: Tue 2009-06-09 09:18:41 -0500
message:
  Add a compatibility thunk for bzrlib.util.bencode (bug #385212)
-------------- next part --------------
=== added file 'bzrlib/util/bencode.py'
--- a/bzrlib/util/bencode.py	1970-01-01 00:00:00 +0000
+++ b/bzrlib/util/bencode.py	2009-06-09 14:18:41 +0000
@@ -0,0 +1,24 @@
+# Copyright (C) 2009 Canonical Ltd
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+from bzrlib import symbol_versioning
+
+dep_warning = symbol_versioning.deprecated_in((1, 16, 0)) % (
+    'bzrlib.util.bencode',) + '\n  Use bzrlib.bencode instead'
+
+symbol_versioning.warn(dep_warning, DeprecationWarning)
+
+from bzrlib.bencode import *



More information about the bazaar-commits mailing list