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

Unified Diff: gclient_utils.py

Issue 19498004: Add a prefix to temporary file to enter CL description. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 7 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient_utils.py
diff --git a/gclient_utils.py b/gclient_utils.py
index fe3f7b850d1ec1dd1c84f53549448a278acfb5c8..8385deb054a8b6823f13b5cfeef4816f45999304 100644
--- a/gclient_utils.py
+++ b/gclient_utils.py
@@ -806,7 +806,7 @@ def GetEditor(git, git_editor=None):
def RunEditor(content, git, git_editor=None):
"""Opens up the default editor in the system to get the CL description."""
- file_handle, filename = tempfile.mkstemp(text=True)
+ file_handle, filename = tempfile.mkstemp(text=True, prefix='cl_description')
# Make sure CRLF is handled properly by requiring none.
if '\r' in content:
print >> sys.stderr, (
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698