~xnox/usb-creator/wipeout

« back to all changes in this revision

Viewing changes to bin/usb-creator-helper

  • Committer: Colin Watson
  • Date: 2012-05-04 10:43:38 UTC
  • Revision ID: cjwatson@canonical.com-20120504104338-nlxkesxa2xfomop5
Just use dict.items() rather than bothering with Python 2/3
compatibility for dict.iteritems().

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
        dev_file = dev.Get(device, 'device-file', dbus_interface=PROPS_IFACE)
114
114
        if mem_free() >= 768:
115
115
            envp = []
116
 
            for k, v in env.iteritems():
 
116
            for k, v in env.items():
117
117
                envp.append('%s=%s' % (str(k), str(v)))
118
118
            cmd = ('kvm', '-m', '512', '-hda', str(dev_file))
119
119
            flags = (gobject.SPAWN_SEARCH_PATH)