Revision 035b33e2 lib/utils/wrapper.py
b/lib/utils/wrapper.py | ||
---|---|---|
1 | 1 |
# |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2006, 2007, 2010, 2011 Google Inc. |
|
4 |
# Copyright (C) 2006, 2007, 2010, 2011, 2012 Google Inc.
|
|
5 | 5 |
# |
6 | 6 |
# This program is free software; you can redistribute it and/or modify |
7 | 7 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
22 | 22 |
|
23 | 23 |
""" |
24 | 24 |
|
25 |
import sys |
|
25 | 26 |
import time |
26 | 27 |
import socket |
27 | 28 |
import errno |
... | ... | |
182 | 183 |
|
183 | 184 |
""" |
184 | 185 |
# pylint: disable=W0212 |
186 |
if ((sys.hexversion >= 0x020703F0 and sys.hexversion < 0x03000000) or |
|
187 |
sys.hexversion >=0x030203F0): |
|
188 |
# Python 2.7 automatically resets the RNG on pid changes (i.e. forking) |
|
189 |
return |
|
190 |
|
|
185 | 191 |
try: |
186 | 192 |
lock = tempfile._once_lock |
187 | 193 |
lock.acquire() |
Also available in: Unified diff