1. Pypy
  2. Untitled project
  3. pypy

Commits

Maciej Fijalkowski  committed f654d6a

kill the nonsense decorator

  • Participants
  • Parent commits de5922d
  • Branches gc-minimark-pinning

Comments (0)

Files changed (1)

File pypy/rlib/rgc.py

View file
  • Ignore whitespace
 def unpin(obj):
     pass
 
-
-class pinned_object(object):
-    def __init__(self, obj):
-        self.obj = obj
-        
-    def __enter__(self):
-        pin(self.obj)
-        return self
-    
-    def __exit__(self, *args):
-        unpin(self.obj)
-
 # ____________________________________________________________
 # Annotation and specialization