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

Unified Diff: client/swarming.py

Issue 2093593002: luci-py: Making __file__ usage unicode safe. (Closed) Base URL: https://github.com/luci/luci-py.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: client/swarming.py
diff --git a/client/swarming.py b/client/swarming.py
index e34e091e87817df3a16ce885982cbc33336ff369..c70eff71b8bb3aac2a9d0b09288ecac2809bded7 100755
--- a/client/swarming.py
+++ b/client/swarming.py
@@ -40,7 +40,8 @@ import isolateserver
import run_isolated
-ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
+ROOT_DIR = os.path.dirname(os.path.abspath(
+ __file__.decode(sys.getfilesystemencoding())))
class Failure(Exception):

Powered by Google App Engine
This is Rietveld 408576698