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

Unified Diff: appengine/components/tool_support/local_app.py

Issue 1390773002: Add an assert to ensure UTF-8 locale when handling file paths. (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: More fixes Created 5 years, 2 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 | « appengine/components/tests/endpoints_smoke_test.py ('k') | appengine/swarming/local_smoke_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/components/tool_support/local_app.py
diff --git a/appengine/components/tool_support/local_app.py b/appengine/components/tool_support/local_app.py
index e8b13ac60f796de7be0f31efaa6b9bbc78fdaaf9..380b83644be3620052ea10acb067c178881de017 100644
--- a/appengine/components/tool_support/local_app.py
+++ b/appengine/components/tool_support/local_app.py
@@ -24,6 +24,8 @@ import urllib2
from . import gae_sdk_utils
+from utils import file_path
+
def terminate_with_parent():
"""Sets up current process to receive SIGTERM when its parent dies.
@@ -208,7 +210,7 @@ class LocalApplication(object):
self._log = f.read()
if not leak:
try:
- shutil.rmtree(self._temp_root)
+ file_path.rmtree(self._temp_root)
except OSError as e:
# Log but ignore it to not mask other errors.
print >> sys.stderr, str(e)
« no previous file with comments | « appengine/components/tests/endpoints_smoke_test.py ('k') | appengine/swarming/local_smoke_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698