exaviorn / RasPiWrite

A Python Script that prepairs and installs a Raspberry Pi compatiable distro to an SD Card
exaviorn.com/raspiwrite
GNU General Public License v3.0
209 stars 130 forks source link

Syntax error in script #78

Open brandondrew opened 10 years ago

brandondrew commented 10 years ago
curl https://raw.githubusercontent.com/exaviorn/RasPiWrite/master/raspiwrite.py | python
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 19000  100 19000    0     0   7354      0  0:00:02  0:00:02 --:--:--  7352
  File "<stdin>", line 177
    else
       ^
SyntaxError: invalid syntax

I tried fixing it but I'm not a Pythonista. I added (what I took to be) the missing : but then there was some indentation error that didn't make any sense to me.

brandondrew commented 10 years ago

If I had to guess, I'd say that the class transferInBackground line was added as an afterthought and all the indentation for the methods in that class were never properly fixed. But that's just a guess.