~ubuntu-branches/ubuntu/oneiric/python2.6/oneiric

« back to all changes in this revision

Viewing changes to Lib/asyncore.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-08-07 20:03:08 UTC
  • mfrom: (10.1.27 sid)
  • Revision ID: james.westby@ubuntu.com-20100807200308-bwsyymoc4donr9a9
Tags: 2.6.6~rc1-1ubuntu1
* Merge with Debian; remaining changes:
  - Regenerate the control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
594
594
        def send(self, *args):
595
595
            return os.write(self.fd, *args)
596
596
 
 
597
        def getsockopt(self, level, optname, buflen=None):
 
598
            if (level == socket.SOL_SOCKET and
 
599
                optname == socket.SO_ERROR and
 
600
                not buflen):
 
601
                return 0
 
602
            raise NotImplementedError("Only asyncore specific behaviour "
 
603
                                      "implemented.")
 
604
 
597
605
        read = recv
598
606
        write = send
599
607