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

Side by Side Diff: trunk/test/copies-link/src/copy.py

Issue 306051: Add AUTHORS and LICENSE files, and copyright headers to relevant source files... (Closed) Base URL: http://gyp.googlecode.com/svn/
Patch Set: '' Created 11 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2009 Google Inc. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
3 import shutil 7 import shutil
4 import sys 8 import sys
5 9
6 10
7 def main(argv): 11 def main(argv):
8 if len(argv) != 3: 12 if len(argv) != 3:
9 print 'USAGE: copy.py <src> <dst>' 13 print 'USAGE: copy.py <src> <dst>'
10 return 1 14 return 1
11 15
12 shutil.copy(argv[1], argv[2]) 16 shutil.copy(argv[1], argv[2])
13 return 0 17 return 0
14 18
15 19
16 if __name__ == '__main__': 20 if __name__ == '__main__':
17 sys.exit(main(sys.argv)) 21 sys.exit(main(sys.argv))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698