Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Conditional block colon missing and indentation in the run and transfer methods #15

Open
wants to merge 1 commit into from

2 participants

@mikehemp

No description provided.

@kellym

:+1: for this, someone should be testing the PRs before merging into master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 21, 2012
  1. @mikehemp
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 raspiwrite.py
View
6 raspiwrite.py
@@ -174,7 +174,7 @@ def run ( self ):
global path
if OS[0] != 'Darwin':
copyString = 'dd bs=1M if=%s of=%s' % (path,SDsnip)
- else
+ else:
copyString = 'dd bs=1m if=%s of=%s' % (path,SDsnip)
print 'Running ' + copyString + '...'
@@ -272,10 +272,10 @@ def transfer(file,archiveType,obtain,SD,URL): #unzips the disk image
SDsnip = "/dev/mmcblk" + SD[11]
else:
if OS[0] != 'Darwin':
- SDsnip = SD.replace(' ', '')[:-1]
+ SDsnip = SD.replace(' ', '')[:-1]
else:
# remove weird partition notation in OS X partition names
- SDsnip = SD.replace(' ', '')[:-2]
+ SDsnip = SD.replace(' ', '')[:-2]
print path
print '\n\n###################################################################'
Something went wrong with that request. Please try again.