Rev 4388: Make it clear that bzrlib.user_encoding is deprecated. in http://bzr.arbash-meinel.com/branches/bzr/jam-integration
John Arbash Meinel
john at arbash-meinel.com
Wed Jul 8 15:40:36 BST 2009
At http://bzr.arbash-meinel.com/branches/bzr/jam-integration
------------------------------------------------------------
revno: 4388
revision-id: john at arbash-meinel.com-20090708144029-2ey6t9jhfh8javk3
parent: john at arbash-meinel.com-20090708143725-sc9sjy3mz4cxwxzz
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: jam-integration
timestamp: Wed 2009-07-08 09:40:29 -0500
message:
Make it clear that bzrlib.user_encoding is deprecated.
-------------- next part --------------
=== modified file 'NEWS'
--- a/NEWS 2009-07-06 06:46:30 +0000
+++ b/NEWS 2009-07-08 14:40:29 +0000
@@ -120,6 +120,11 @@
Internals
*********
+* ``bzrlib.user_encoding`` is now officially deprecated. It is not
+ possible to write a deprecation wrapper, but the variable will be
+ removed in the near future. Use ``bzrlib.osutils.get_user_encoding()``
+ instead. (Alexander Belchenko)
+
* Command lookup has had hooks added. ``bzrlib.Command.hooks`` has
three new hook points: ``get_command``, ``get_missing_command`` and
``list_commands``, which allow just-in-time command name provision
=== modified file 'bzrlib/__init__.py'
--- a/bzrlib/__init__.py 2009-06-26 09:24:34 +0000
+++ b/bzrlib/__init__.py 2009-07-08 14:40:29 +0000
@@ -37,7 +37,7 @@
IGNORE_FILENAME = ".bzrignore"
-# XXX: Compatibility. This should probably be deprecated
+# XXX: Deprecated as of bzr-1.17 use osutils.get_user_encoding() directly
user_encoding = get_user_encoding()
More information about the bazaar-commits
mailing list