Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Issue 2093593002: luci-py: Making __file__ usage unicode safe. (Closed)

Created:
4 years, 6 months ago by mithro
Modified:
4 years, 6 months ago
Reviewers:
M-A Ruel
CC:
chromium-reviews, infra-reviews+luci-py_chromium.org
Base URL:
https://github.com/luci/luci-py.git@master
Target Ref:
refs/heads/master
Project:
luci-py
Visibility:
Public.

Description

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. Committed: https://github.com/luci/luci-py/commit/35ec08d6007a823bf39a5095c8bc98a6865b8efd

Patch Set 1 #

Total comments: 4

Patch Set 2 : Small fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -60 lines) Patch
M client/example/common.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/libs/logdog/tests/bootstrap_test.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/libs/logdog/tests/stream_test.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/libs/logdog/tests/streamname_test.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/libs/logdog/tests/varint_test.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/run_isolated.py View 2 chunks +7 lines, -5 lines 0 comments Download
M client/swarming.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tests/file_path_test.py View 1 chunk +3 lines, -2 lines 0 comments Download
M client/tests/isolate_format_test.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tests/isolate_smoke_test.py View 3 chunks +6 lines, -3 lines 0 comments Download
M client/tests/isolate_test.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tests/isolateserver_smoke_test.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tests/large_test.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tests/logging_utils_test.py View 1 chunk +1 line, -1 line 0 comments Download
M client/tests/lru_test.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tests/net_test.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tests/net_utils.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tests/on_error_test.py View 2 chunks +6 lines, -1 line 0 comments Download
M client/tests/run_isolated_smoke_test.py View 4 chunks +8 lines, -4 lines 0 comments Download
M client/tests/run_isolated_test.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tests/swarming_smoke_test.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tests/threading_utils_test.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tests/trace_inputs/touch_only.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tests/trace_inputs_smoke_test.py View 2 chunks +3 lines, -2 lines 0 comments Download
M client/tests/trace_inputs_test.py View 2 chunks +5 lines, -3 lines 0 comments Download
M client/tests/url_open_timeout_test.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tests/zip_package_test.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/third_party/httplib2/__init__.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/third_party/infra_libs/event_mon/checkouts.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tools/cost.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tools/diff_isolates.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tools/fleet.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tools/isolateserver_load_test.py View 1 chunk +2 lines, -2 lines 0 comments Download
M client/tools/parallel_execution.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tools/run_on_bots.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tools/run_swarming_tests_on_swarming.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tools/swarming_count_tasks.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tools/swarming_load_test_bot.py View 1 chunk +2 lines, -2 lines 0 comments Download
M client/tools/swarming_load_test_client.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tools/zip_profiler.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/tools/zip_run_isolated.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/trace_inputs.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/utils/oauth.py View 1 chunk +2 lines, -1 line 0 comments Download
M client/utils/zip_package.py View 1 3 chunks +21 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (6 generated)
mithro
4 years, 6 months ago (2016-06-23 06:13:50 UTC) #2
M-A Ruel
lgtm https://codereview.chromium.org/2093593002/diff/1/client/utils/zip_package.py File client/utils/zip_package.py (right): https://codereview.chromium.org/2093593002/diff/1/client/utils/zip_package.py#newcode36 client/utils/zip_package.py:36: add another empty line above. https://codereview.chromium.org/2093593002/diff/1/client/utils/zip_package.py#newcode45 client/utils/zip_package.py:45: sys.path_hooks[i] ...
4 years, 6 months ago (2016-06-23 13:09:54 UTC) #3
mithro
https://codereview.chromium.org/2093593002/diff/1/client/utils/zip_package.py File client/utils/zip_package.py (right): https://codereview.chromium.org/2093593002/diff/1/client/utils/zip_package.py#newcode36 client/utils/zip_package.py:36: On 2016/06/23 13:09:54, M-A Ruel OOO up to July ...
4 years, 6 months ago (2016-06-24 03:22:42 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2093593002/20001
4 years, 6 months ago (2016-06-24 03:22:54 UTC) #6
mithro
I also create https://github.com/luci/luci-py/issues/265 for us to discuss how to prevent issues like these creeping ...
4 years, 6 months ago (2016-06-24 03:23:38 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-24 03:27:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2093593002/20001
4 years, 6 months ago (2016-06-24 05:31:37 UTC) #12
commit-bot: I haz the power
4 years, 6 months ago (2016-06-24 05:34:35 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://github.com/luci/luci-py/commit/35ec08d6007a823bf39a5095c8bc98a6865b8efd

Powered by Google App Engine
This is Rietveld 408576698