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

Unified Diff: client/tools/cost.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/tools/cost.py
diff --git a/client/tools/cost.py b/client/tools/cost.py
index 6067965e869e4649437d2237d7fda2cd4289a154..d6409bb1e0c84879ad943ba86dba3a9b68433fed 100755
--- a/client/tools/cost.py
+++ b/client/tools/cost.py
@@ -19,7 +19,8 @@ import sys
import urllib
-CLIENT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+CLIENT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(
+ __file__.decode(sys.getfilesystemencoding()))))
_EPOCH = datetime.datetime.utcfromtimestamp(0)

Powered by Google App Engine
This is Rietveld 408576698