Skip to content

debian packaging attempts to byte-compile python2 examples as Python3 #158

Open
@pehrsoderman

Description

@pehrsoderman

This results in warning such as these when installing the package:

Failed to byte-compile /usr/lib/problemtools/examples/different/submissions/accepted/different.py:   File "/usr/lib/problemtools/examples/different/submissions/accepted/different.py", line 7
    print abs(a-b)
          ^
SyntaxError: Missing parentheses in call to 'print'

Failed to byte-compile /usr/lib/problemtools/examples/guess/submissions/wrong_answer/guess.py:   File "/usr/lib/problemtools/examples/guess/submissions/wrong_answer/guess.py", line 3
    print "500"
          ^
SyntaxError: Missing parentheses in call to 'print'

Failed to byte-compile /usr/lib/problemtools/examples/hello/submissions/accepted/hello.py:   File "/usr/lib/problemtools/examples/hello/submissions/accepted/hello.py", line 1
    print 'Hello World!'
          ^
SyntaxError: Missing parentheses in call to 'print'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions