davidstrauss / google-drive-recursive-ownership

Tool to recursively give away file and document ownership to another user.
MIT License
269 stars 68 forks source link

transfer.py: make format string unicode-safe #2

Closed jcsahnwaldt closed 9 years ago

jcsahnwaldt commented 9 years ago

For folder names containing non-ASCII chars, I got the following error:

print('Folder: {} ({}, {})'.format(item['title'], current_prefix, item['id']))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 1: ordinal not in range(128)

I added the u prefix to the format string to avoid this error.

jcsahnwaldt commented 9 years ago

I'm closing my pull request. https://github.com/davidstrauss/google-drive-recursive-ownership/pull/1 is better. Please merge it! Thanks!