| commit | f42e2ec3e4743af2d1667e758f7137a8db78a4d4 | [log] [tgz] |
|---|---|---|
| author | tansell <tansell@chromium.org> | Fri Jun 24 05:34:32 2016 |
| committer | Owen Rodley <orodley@chromium.org> | Fri Jun 04 05:32:30 2021 |
| tree | 4da003f7665dd2232ebe2eddbdca31fb5fbcf44c | |
| parent | 3c0ca6a204630dac8475447630664a3bb85f7988 [diff] |
luci-py: Making __file__ usage unicode safe. In luci-py, all paths should be unicode. __file__ is a str object in the file system's encoding, hence you need to use `__file__.decode(sys.getfilesystemencoding())` to convert it into unicode. Fixes #264. Review-Url: https://codereview.chromium.org/2093593002 NOKEYCHECK=True GitOrigin-RevId: 35ec08d6007a823bf39a5095c8bc98a6865b8efd