Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.x fixes and codejail config #58

Merged
merged 1 commit into from
Apr 7, 2021
Merged

Commits on Apr 7, 2021

  1. fix: Resolves broken tokenization and codejail limits setting

    Fixes incompatible tokenization of user submitted code when running under Python 3.x. This is used to add checks to ensure that students are using specific keywords or language features.
    
    Fix bug when using codejail limits in xqueue-watcher
    
    When the `limits` object is set in the codejail configuration block it causes the command used for launching a watcher process to be invalid. This is because there was a variable name used in a for loop that shadowed a variable from an outer scope that is then returned from the `enable_codejail` method that is used as an argument for the execution.
    
    Fixed invalid conversion of conditional dictionary iterator
    
    The PR that removed the usage of `six` failed to wrap the conditional `environment or {}` in parentheses before calling `.items()` on the resulting value. This would lead to trying to iterate over _either_ `environment` or `{}.items()` which is not the correct behavior.
    shaidar authored and blarghmatey committed Apr 7, 2021
    Configuration menu
    Copy the full SHA
    e01d3ab View commit details
    Browse the repository at this point in the history