~lifeless/storm/bug-620615

« back to all changes in this revision

Viewing changes to storm/psycer.py

Merging fixes from James.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
_bound = []
3
 
 
4
 
def bind(object, depth=None):
5
 
    _bound.append((object, depth))
6
 
 
7
 
def enable():
8
 
    import psyco
9
 
    for object, depth in _bound:
10
 
        if depth is not None:
11
 
            psyco.bind(object, depth)
12
 
        else:
13
 
            psyco.bind(object)