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

« back to all changes in this revision

Viewing changes to eventlet/green/os.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:
8
8
from eventlet import hubs
9
9
 
10
10
__patched__ = ['fdopen', 'read', 'write', 'wait', 'waitpid']
11
 
exec "\n".join(["%s = os_orig.%s" % (var, var) for var in dir(os_orig)])
 
11
globals().update(dict([(var, getattr(os_orig, var))
 
12
                       for var in dir(os_orig) 
 
13
                       if not var.startswith('__')]))
 
14
__all__ = os_orig.__all__
12
15
 
13
16
def fdopen(fd, *args, **kw):
14
17
    """fdopen(fd [, mode='r' [, bufsize]]) -> file_object