~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/remote.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-05-07 13:42:18 UTC
  • mfrom: (2471.2.1 hpss-0.11-compat)
  • Revision ID: pqm@pqm.ubuntu.com-20070507134218-nk6vem1ok21xv3yt
(robertc) Fix trivial incompatibility with bzr 0.11 servers, which give a slightly different error to bzr 0.15 servers. (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
133
133
            return True
134
134
        elif resp == ('no', ):
135
135
            return False
136
 
        elif resp == ('error', "Generic bzr smart protocol error: "
137
 
                               "bad request 'Transport.is_readonly'"):
 
136
        elif (resp == ('error', "Generic bzr smart protocol error: "
 
137
                                "bad request 'Transport.is_readonly'") or
 
138
              resp == ('error', "Generic bzr smart protocol error: "
 
139
                                "bad request u'Transport.is_readonly'")):
138
140
            # XXX: nasty hack: servers before 0.16 don't have a
139
141
            # 'Transport.is_readonly' verb, so we do what clients before 0.16
140
142
            # did: assume False.