212
182
val = 's:' + str_or_unicode.encode('base64')
213
183
# This handles UnicodeEncodeError or UnicodeDecodeError
215
185
e.encoding, val, str(e.start), str(e.end), e.reason))
216
186
except errors.TransportNotPossible, e:
217
187
if e.msg == "readonly transport":
223
193
class HelloRequest(SmartServerRequest):
232
200
class GetBundleRequest(SmartServerRequest):
235
202
def do(self, path, revision_id):
236
203
# open transport relative to our base