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

Unified Diff: test/rules-dirname/src/copy-file.py

Issue 1454433002: Python 3 compatibility Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Rebase with master (4ec6c4e3a94bd04a6da2858163d40b2429b8aad1) Created 4 years, 8 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: test/rules-dirname/src/copy-file.py
diff --git a/test/rules-dirname/src/copy-file.py b/test/rules-dirname/src/copy-file.py
index 9774ccc960753239fc2fba5fd6310718ed465e04..271a72b6b1a32c98e928bc92eebd725bdfd6044c 100755
--- a/test/rules-dirname/src/copy-file.py
+++ b/test/rules-dirname/src/copy-file.py
@@ -6,6 +6,6 @@
import sys
contents = open(sys.argv[1], 'r').read()
-open(sys.argv[2], 'wb').write(contents)
+open(sys.argv[2], 'w').write(contents)
sys.exit(0)

Powered by Google App Engine
This is Rietveld 408576698