| 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 """Get rietveld stats about the review you done, or forgot to do. | 6 """Get rietveld stats about the review you done, or forgot to do. |
| 7 | 7 |
| 8 Example: | 8 Example: |
| 9 - my_reviews.py -o me@chromium.org -Q for stats for last quarter. | 9 - my_reviews.py -r me@chromium.org -Q for stats for last quarter. |
| 10 """ | 10 """ |
| 11 import datetime | 11 import datetime |
| 12 import optparse | 12 import optparse |
| 13 import os | 13 import os |
| 14 import sys | 14 import sys |
| 15 | 15 |
| 16 import rietveld | 16 import rietveld |
| 17 | 17 |
| 18 | 18 |
| 19 def username(email): | 19 def username(email): |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 print_reviews( | 144 print_reviews( |
| 145 options.reviewer, | 145 options.reviewer, |
| 146 options.begin, | 146 options.begin, |
| 147 options.end, | 147 options.end, |
| 148 options.instance_url) | 148 options.instance_url) |
| 149 return 0 | 149 return 0 |
| 150 | 150 |
| 151 | 151 |
| 152 if __name__ == '__main__': | 152 if __name__ == '__main__': |
| 153 sys.exit(main()) | 153 sys.exit(main()) |
| OLD | NEW |