Skip to content

converted to python3 #12

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

converted to python3 #12

wants to merge 3 commits into from

Conversation

OliPelz
Copy link

@OliPelz OliPelz commented Jun 27, 2024

Adapted script to make it compatible with python3:

  • String Comparison: Changed basestring to str.
  • Iterator Protocol: Removed the usage of StopIteration and ensured the iterator ends without explicit raise StopIteration.
  • Print Statement: Changed print to sys.stdout.write for the final output to avoid the trailing newline
  • hebang Line: Updated to #!/usr/bin/python3 to specify Python 3 interpreter.
  • all tests did pass
t10.sh passed
t2.sh passed
t3.sh passed
t5.sh passed
t7.sh passed
t9.sh passed
t_arithmetic_expansion.sh passed
t_case.sh passed
t_dot.sh passed
t_escaped.sh passed
t_functions.sh passed
t_heredocs_and_herestrings.sh passed
t_if_statement.sh passed
t_line_continuation.sh passed
t_parameters_expansion.sh passed
t_pipe.sh passed
t_process_substitution.sh passed
t_while_until_loops.sh passed
PASSED 18, FAILED 0

Oliver Pelz added 3 commits June 27, 2024 20:26
    Iterator Protocol: Removed the usage of StopIteration and ensured the iterator ends without explicit raise StopIteration.
    Print Statement: Changed print to sys.stdout.write for the final output to avoid the trailing newline.
    Shebang Line: Updated to #!/usr/bin/python3 to specify Python 3 interpreter.
    File Handling: No need for any changes as it is compatible with both Python 2 and 3.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant