dropbox / dropbox-sdk-rust

Dropbox SDK for Rust
Apache License 2.0
77 stars 18 forks source link

Python cleanup #102

Closed wfraser closed 2 years ago

wfraser commented 2 years ago

Two changes now that Python 2 is a thing of the past:

  1. Remove the u'...' prefix on strings. In Python 3 this prefix does nothing.
  2. Replace all calls to .format(...) with f'...' strings. This is new in Python 3.6 and is IMO more readable. It also more closely matches the new Rust format!("{variable}") syntax.

Checklist

General Contributing

Validation

The generated code did not change at all, and all tests still pass. I did this mostly manually, but if I made any typos it must not be in live code. :)

My PyCharm also has fewer yellow squiggly lines in it now.