Syntax errors running on Python 2.7 using Mac OS X 10.8.2 #56
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For whatever reason, I needed to make the attached changes in order to run
raspiwrite.py
on my environment. Figured I'd create a pull request and document the syntax errors I ran into in case others run into similar issues.✪ git clone https://github.com/exaviorn/RasPiWrite.git 1354378953
Cloning into 'RasPiWrite'...
remote: Counting objects: 64, done.
remote: Compressing objects: 100% (36/36), done.
remote: Total 64 (delta 30), reused 62 (delta 28)
Unpacking objects: 100% (64/64), done.
✪ ./raspiwrite.py 1354378971
File "./raspiwrite.py", line 177
else
^
SyntaxError: invalid syntax
✪ ./raspiwrite.py 1354379016
File "./raspiwrite.py", line 275
SDsnip = SD.replace(' ', '')[:-1]
^
IndentationError: expected an indented block
✪ ./raspiwrite.py 1354379115
File "./raspiwrite.py", line 278
SDsnip = SD.replace(' ', '')[:-2]
^
IndentationError: expected an indented block