File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -133,11 +133,11 @@ def __init__(
133
133
# shallow copy here because we don't want to replace what's in
134
134
# scope when we align terms (alignment accesses the underlying
135
135
# numpy array of pandas objects)
136
- scope_global = self .scope .new_child ((global_dict or frame .f_globals ).copy ())
136
+ scope_global = self .scope .new_child ((global_dict if global_dict is not None else frame .f_globals ).copy ())
137
137
self .scope = DeepChainMap (scope_global )
138
138
if not isinstance (local_dict , Scope ):
139
139
scope_local = self .scope .new_child (
140
- (local_dict or frame .f_locals ).copy ()
140
+ (local_dict if local_dict is not None else frame .f_locals ).copy ()
141
141
)
142
142
self .scope = DeepChainMap (scope_local )
143
143
finally :
You can’t perform that action at this time.
0 commit comments