Rev 4862: Use a StringIO instead, otherwise we get failures with smart server requests. in http://bazaar.launchpad.net/~jameinel/bzr/2.1.0b4-close-file-handles
John Arbash Meinel
john at arbash-meinel.com
Wed Dec 2 22:04:14 GMT 2009
At http://bazaar.launchpad.net/~jameinel/bzr/2.1.0b4-close-file-handles
------------------------------------------------------------
revno: 4862
revision-id: john at arbash-meinel.com-20091202220404-nngfd7uega503nwf
parent: john at arbash-meinel.com-20091202181555-iowrcmizneehhcez
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.1.0b4-close-file-handles
timestamp: Wed 2009-12-02 16:04:04 -0600
message:
Use a StringIO instead, otherwise we get failures with smart server requests.
-------------- next part --------------
=== modified file 'bzrlib/config.py'
--- a/bzrlib/config.py 2009-12-02 17:56:17 +0000
+++ b/bzrlib/config.py 2009-12-02 22:04:04 +0000
@@ -1472,8 +1472,7 @@
def _get_config_file(self):
try:
- return osutils.split_lines(
- self._transport.get_bytes(self._filename))
+ return StringIO(self._transport.get_bytes(self._filename))
except errors.NoSuchFile:
return StringIO()
More information about the bazaar-commits
mailing list