Show More
@@ -881,6 +881,8 b' def nogc(func):' | |||||
881 |
|
881 | |||
882 | This garbage collector issue have been fixed in 2.7. |
|
882 | This garbage collector issue have been fixed in 2.7. | |
883 | """ |
|
883 | """ | |
|
884 | if sys.version >= (2, 7): | |||
|
885 | return func | |||
884 | def wrapper(*args, **kwargs): |
|
886 | def wrapper(*args, **kwargs): | |
885 | gcenabled = gc.isenabled() |
|
887 | gcenabled = gc.isenabled() | |
886 | gc.disable() |
|
888 | gc.disable() |
General Comments 0
You need to be logged in to leave comments.
Login now