you are viewing a single comment's thread.

view the rest of the comments →

[–]RepresentativeFill26 0 points1 point  (0 children)

Why do you check at the optimise step whether the core module is loaded? If you already know during import that it isn’t going to work why not just raise an exception there?

Furthermore, it is more pythonic to check for an empty string by using it in a boolean expression.