~wxl/usb-creator/usb-creator

« back to all changes in this revision

Viewing changes to bin/usb-creator-helper

  • Committer: Marc Deslauriers
  • Date: 2016-01-22 19:38:17 UTC
  • Revision ID: marc.deslauriers@canonical.com-20160122193817-qigkbn6wezlqote1
Tags: 0.3.2
bin/usb-creator-helper: properly handle utf-8 characters
(LP: #1527900)

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
            check_system_internal(obj)
176
176
 
177
177
        start_time = time.time()
178
 
        self._builtin_dd(str(source), str(target))
 
178
        self._builtin_dd(source.encode(), target.encode())
179
179
        logging.debug('Wrote image in %s seconds' % str(int(time.time() - start_time)))
180
180
 
181
181
    @dbus.service.signal(USBCREATOR_IFACE, signature='u')