mercurial/util.py
changeset 29776 279cd80059d4
parent 29730 4d23cd6e2219
child 29828 79add5a4e857
--- a/mercurial/util.py	Fri Aug 12 05:56:40 2016 -0700
+++ b/mercurial/util.py	Thu Jul 28 14:18:01 2016 +0200
@@ -881,6 +881,8 @@
 
     This garbage collector issue have been fixed in 2.7.
     """
+    if sys.version >= (2, 7):
+        return func
     def wrapper(*args, **kwargs):
         gcenabled = gc.isenabled()
         gc.disable()