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 sys | 6 import sys |
7 import urllib | 7 import urllib |
8 | 8 |
9 from set_lkgr import get_pwd | 9 from set_lkgr import get_pwd |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 print out | 22 print out |
23 return 0 | 23 return 0 |
24 | 24 |
25 | 25 |
26 if __name__ == '__main__': | 26 if __name__ == '__main__': |
27 if not (3 <= len(sys.argv) <= 4): | 27 if not (3 <= len(sys.argv) <= 4): |
28 print('Usage: set_status.py username message [url]') | 28 print('Usage: set_status.py username message [url]') |
29 sys.exit(1) | 29 sys.exit(1) |
30 | 30 |
31 sys.exit(post(*sys.argv[1:])) | 31 sys.exit(post(*sys.argv[1:])) |
OLD | NEW |