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

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: Small fixes. 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
« no previous file with comments | « client/tests/zip_package_test.py ('k') | client/third_party/infra_libs/event_mon/checkouts.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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']
« no previous file with comments | « client/tests/zip_package_test.py ('k') | client/third_party/infra_libs/event_mon/checkouts.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698