Rev 4088: Change how we intern strings when processing xml entries. in http://bzr.arbash-meinel.com/branches/bzr/jam-integration
John Arbash Meinel
john at arbash-meinel.com
Fri Mar 6 20:44:18 GMT 2009
At http://bzr.arbash-meinel.com/branches/bzr/jam-integration
------------------------------------------------------------
revno: 4088
revision-id: john at arbash-meinel.com-20090306204358-p5lful9jcxatzrhw
parent: john at arbash-meinel.com-20090306204240-mzjavv31z3gu1x7i
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: jam-integration
timestamp: Fri 2009-03-06 14:43:58 -0600
message:
Change how we intern strings when processing xml entries.
Use intern() itself, rather than a cache that never expires.
-------------- next part --------------
=== modified file 'bzrlib/xml8.py'
--- a/bzrlib/xml8.py 2009-01-17 01:30:58 +0000
+++ b/bzrlib/xml8.py 2009-03-06 20:43:58 +0000
@@ -131,7 +131,7 @@
if a_str.__class__ == unicode:
return _encode_utf8(a_str)
else:
- return _get_cached_ascii(a_str)
+ return intern(a_str)
def _clear_cache():
More information about the bazaar-commits
mailing list