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

Unified Diff: client/third_party/httplib2/__init__.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/third_party/httplib2/__init__.py
diff --git a/client/third_party/httplib2/__init__.py b/client/third_party/httplib2/__init__.py
index fc4f89b9209a7fd6ea3fd554f679eb905f5f86ab..b1f56e8c5ad81619d204a5d97aa0078615b1802f 100644
--- a/client/third_party/httplib2/__init__.py
+++ b/client/third_party/httplib2/__init__.py
@@ -192,7 +192,8 @@ try:
except ImportError:
# Default CA certificates file bundled with httplib2.
CA_CERTS = os.path.join(
- os.path.dirname(os.path.abspath(__file__ )), "cacerts.txt")
+ os.path.dirname(os.path.abspath(
+ __file__.decode(sys.getfilesystemencoding()))), "cacerts.txt")
# Which headers are hop-by-hop headers by default
HOP_BY_HOP = ['connection', 'keep-alive', 'proxy-authenticate', 'proxy-authorization', 'te', 'trailers', 'transfer-encoding', 'upgrade']

Powered by Google App Engine
This is Rietveld 408576698