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

Important bugfix for Python 3 ... #138

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

Conversation

schoettl
Copy link

... and a few more fixes and enhancements.

Please see commits for details.

And thank you for this great tool!

It only had a problem in my environment (Python 3 on Arch) because command line options did not work, e.g. --no-last-newline. This is now fixed.

According to --help, no arguments are excepted. And arguments are
apperently also not processed.
The catch for "Reading failed." is not neccessary in my opinion.
If sparkup is used like
  sparkup < file
and file cannot be opened, the shell will give an error.
For sparkup itself, it should never be a problem to read from stdin.

Catching KeyboardInterrupt here was an error: the variable "lines" is used
later on and it will be undefined when Ctrl-C is pressed.

  ^CParse error. Check your input.
  <class 'UnboundLocalError'>
  local variable 'lines' referenced before assignment

I would just wrap the try-except for KeyboardInterrupt around the main
code.
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