Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
same change in toric varieties code
Browse files Browse the repository at this point in the history
  • Loading branch information
darijgr committed Apr 18, 2014
1 parent cebac21 commit 0b8ed45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/schemes/toric/variety.py
Expand Up @@ -1197,7 +1197,7 @@ def inject_coefficients(self, scope=None, verbose=True):
while True:
scope = sys._getframe(depth).f_globals
if (scope["__name__"] == "__main__"
and scope["__package__"] is None):
and scope.get("__package__", None) is None):
break
depth += 1
try:
Expand Down

0 comments on commit 0b8ed45

Please sign in to comment.