~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/medium.py

  • Committer: Vincent Ladeuil
  • Date: 2012-01-05 16:19:30 UTC
  • mto: This revision was merged to the branch mainline in revision 6437.
  • Revision ID: v.ladeuil+lp@free.fr-20120105161930-bh6bwqnt9tvv902f
Tweak news entry to conflict on merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
    debug,
44
44
    errors,
45
45
    trace,
46
 
    transport,
47
46
    ui,
48
47
    urlutils,
49
48
    )
1022
1021
            raise AssertionError(
1023
1022
                "Unexpected io_kind %r from %r"
1024
1023
                % (io_kind, self._ssh_connection))
1025
 
        for hook in transport.Transport.hooks["post_connect"]:
1026
 
            hook(self)
1027
1024
 
1028
1025
    def _flush(self):
1029
1026
        """See SmartClientStreamMedium._flush()."""
1132
1129
            raise errors.ConnectionError("failed to connect to %s:%d: %s" %
1133
1130
                    (self._host, port, err_msg))
1134
1131
        self._connected = True
1135
 
        for hook in transport.Transport.hooks["post_connect"]:
1136
 
            hook(self)
1137
1132
 
1138
1133
 
1139
1134
class SmartClientAlreadyConnectedSocketMedium(SmartClientSocketMedium):