~ubuntu-branches/ubuntu/trusty/python-eventlet/trusty-proposed

« back to all changes in this revision

Viewing changes to eventlet/green/_socket_nodns.py

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2010-09-28 21:20:32 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100928212032-c4n67olxdoqzygmt
Tags: 0.9.12-0ubuntu1
New upstream release. (FFe: LP: #645899)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
__socket = __import__('socket')
2
 
exec "\n".join(["%s = __socket.%s" % (var, var) for var in __socket.__all__])
 
2
globals().update(dict([(var, getattr(__socket, var))
 
3
                       for var in dir(__socket) 
 
4
                       if not var.startswith('__')]))
3
5
 
4
6
os = __import__('os')
5
7
import sys
6
8
import warnings
7
 
 
8
9
from eventlet.hubs import get_hub
9
10
from eventlet.greenio import GreenSocket as socket
10
11
from eventlet.greenio import SSL as _SSL  # for exceptions
13
14
 
14
15
__all__     = __socket.__all__
15
16
__patched__ = ['fromfd', 'socketpair', 'create_connection', 'ssl', 'socket']
16
 
 
17
17
try:
18
18
    __original_fromfd__ = __socket.fromfd
19
19
    def fromfd(*args):