Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import os | |
| 6 import sys | |
| 7 | |
| 8 def stamp(): | |
| 9 stamp_file = sys.argv[1] | |
| 10 try: | |
| 11 os.utime(stamp_file, None) | |
| 12 except: | |
| 13 open(stamp_file, 'a') | |
| 14 | |
| 15 if __name__ == '__main__': | |
| 16 stamp() | |
| OLD | NEW |