| OLD | NEW |
| 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)) |
| OLD | NEW |