diff options
| author | Josh Blum <josh@joshknows.com> | 2011-06-16 11:46:13 -0700 | 
|---|---|---|
| committer | Josh Blum <josh@joshknows.com> | 2011-06-16 11:46:13 -0700 | 
| commit | a18b7e0168108556a0be93853ef672d6fd32ab72 (patch) | |
| tree | 7b261c6ffcce54cfa9b73525516f895393d181ce | |
| parent | 435d14ea9559334200d5a2b86188738d0e2b4466 (diff) | |
| download | uhd-a18b7e0168108556a0be93853ef672d6fd32ab72.tar.gz uhd-a18b7e0168108556a0be93853ef672d6fd32ab72.tar.bz2 uhd-a18b7e0168108556a0be93853ef672d6fd32ab72.zip | |
usrp2: macosx fix, use object's strip, not str (could be unicode)
| -rwxr-xr-x | host/utils/usrp2_card_burner.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/host/utils/usrp2_card_burner.py b/host/utils/usrp2_card_burner.py index 29370ca49..43689dd20 100755 --- a/host/utils/usrp2_card_burner.py +++ b/host/utils/usrp2_card_burner.py @@ -126,7 +126,7 @@ def get_raw_device_hints():      if platform.system() == 'Darwin':          devs = [d.split()[0] for d in [l for l in command('diskutil', 'list').splitlines() if l.startswith('/dev')]]          def output_to_info(output): -            return dict([list(map(str.strip, pair.lower().split(':'))) for pair in [l for l in output.splitlines() if ':' in l]]) +            return dict([list(map(lambda x: x.strip(), pair.lower().split(':'))) for pair in [l for l in output.splitlines() if ':' in l]])          def is_dev_valid(dev):              info = output_to_info(command('diskutil', 'info', dev))              try: | 
