]>
Commit | Line | Data |
---|---|---|
6d7c3a3e JB |
1 | --- eventlet-0.25.1/eventlet/__init__.py.orig 2019-08-21 23:29:28.000000000 +0200 |
2 | +++ eventlet-0.25.1/eventlet/__init__.py 2020-01-07 05:30:11.537444971 +0100 | |
3 | @@ -21,8 +21,11 @@ | |
4 | # Helpful when CPython < 3.5 on Linux blocked in `os.waitpid(-1)` before first use of hub. | |
5 | # Example: gunicorn | |
6 | # https://github.com/eventlet/eventlet/issues/401#issuecomment-327500352 | |
7 | - import monotonic | |
8 | - del monotonic | |
9 | + try: | |
10 | + import monotonic | |
11 | + del monotonic | |
12 | + except ImportError: | |
13 | + pass | |
14 | ||
15 | connect = convenience.connect | |
16 | listen = convenience.listen | |
17 | --- eventlet-0.25.1/eventlet/hubs/hub.py.orig 2019-05-24 11:00:38.000000000 +0200 | |
18 | +++ eventlet-0.25.1/eventlet/hubs/hub.py 2020-01-07 05:30:59.527184988 +0100 | |
19 | @@ -22,7 +22,10 @@ | |
20 | import eventlet.hubs | |
21 | from eventlet.hubs import timer | |
22 | from eventlet.support import greenlets as greenlet, clear_sys_exc_info | |
23 | -import monotonic | |
24 | +try: | |
25 | + from monotonic import monotonic | |
26 | +except ImportError: | |
27 | + from time import monotonic | |
28 | import six | |
29 | ||
30 | g_prevent_multiple_readers = True | |
31 | @@ -120,7 +123,7 @@ | |
32 | self.closed = [] | |
33 | ||
34 | if clock is None: | |
35 | - clock = monotonic.monotonic | |
36 | + clock = monotonic | |
37 | self.clock = clock | |
38 | ||
39 | self.greenlet = greenlet.greenlet(self.run) | |
40 | --- eventlet-0.25.1/setup.py.orig 2020-01-07 05:31:16.320427345 +0100 | |
41 | +++ eventlet-0.25.1/setup.py 2020-01-07 05:31:19.623742782 +0100 | |
42 | @@ -18,7 +18,7 @@ | |
43 | 'dnspython >= 1.15.0', | |
44 | 'enum34;python_version<"3.4"', | |
45 | 'greenlet >= 0.3', | |
46 | - 'monotonic >= 1.4', | |
47 | + 'monotonic >= 1.4;python_version<"3.3"', | |
48 | 'six >= 1.10.0', | |
49 | ), | |
50 | zip_safe=False, |