~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/medium.py

  • Committer: Martin Pool
  • Date: 2009-06-19 09:06:56 UTC
  • mfrom: (4463 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4464.
  • Revision ID: mbp@sourcefrog.net-20090619090656-d5weqeecyscv8kqp
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
472
472
        if not line.endswith('\n'):
473
473
            # end of file encountered reading from server
474
474
            raise errors.ConnectionReset(
475
 
                "Unexpected end of message. Please check connectivity "
476
 
                "and permissions, and report a bug if problems persist.")
 
475
                "please check connectivity and permissions")
477
476
        return line
478
477
 
479
478
    def _read_line(self):
519
518
        # Increment the count in the WeakKeyDictionary
520
519
        value = self.counts[params.medium]
521
520
        value['count'] += 1
522
 
        try:
523
 
            request_method = request.request_handlers.get(params.method)
524
 
        except KeyError:
525
 
            # A method we don't know about doesn't count as a VFS method.
526
 
            return
 
521
        request_method = request.request_handlers.get(params.method)
527
522
        if issubclass(request_method, vfs.VfsRequest):
528
523
            value['vfs_count'] += 1
529
524