OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import getpass | 6 import getpass |
7 import os | 7 import os |
8 import re | 8 import re |
9 import sys | 9 import sys |
10 import urllib | 10 import urllib |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 out = urllib.urlopen(url + '/revisions', urllib.urlencode(data)).read() | 43 out = urllib.urlopen(url + '/revisions', urllib.urlencode(data)).read() |
44 print out | 44 print out |
45 return 0 | 45 return 0 |
46 | 46 |
47 | 47 |
48 if __name__ == '__main__': | 48 if __name__ == '__main__': |
49 if not (2 <= len(sys.argv) <= 4): | 49 if not (2 <= len(sys.argv) <= 4): |
50 usage() | 50 usage() |
51 | 51 |
52 sys.exit(post(*sys.argv[1:])) | 52 sys.exit(post(*sys.argv[1:])) |
OLD | NEW |