This repository was archived by the owner on Jan 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 102
102
103
103
################ end setup warnings ###############################
104
104
105
+ import sage .misc .lazy_import
105
106
lazy_import_lock = sage .misc .lazy_import .lock ()
106
107
lazy_import_lock .__enter__ ()
107
108
117
118
from time import sleep
118
119
from functools import reduce # in order to keep reduce in python3
119
120
120
- import sage .misc .lazy_import
121
-
122
121
from sage .misc .all import * # takes a while
123
122
from sage .typeset .all import *
124
123
from sage .repl .all import *
Original file line number Diff line number Diff line change @@ -120,15 +120,15 @@ def lock():
120
120
GuardState.LOCKED
121
121
"""
122
122
global startup_state
123
- guard_state = GuardState.RUNNING
123
+ guard_state = GuardState.LOCKED
124
124
yield
125
- guard_state = GuardState.FINISHED
125
+ guard_state = GuardState.UNLOCKED
126
126
127
127
cdef list imports_resolved_during_locked = []
128
128
129
129
def _get_imports_resolved_during_locked ():
130
130
"""
131
- Return all lazy imports that were resolved while the layz import guard
131
+ Return all lazy imports that were resolved while the lazy import guard
132
132
has been locked.
133
133
Only used for integration tests.
134
134
You can’t perform that action at this time.
0 commit comments