~twisted-dev/twisted-trac-integration/trunk

« back to all changes in this revision

Viewing changes to commit-bot/alert

  • Committer: tom.prince at ualberta
  • Date: 2013-05-21 17:27:11 UTC
  • Revision ID: tom.prince@ualberta.net-20130521172711-o9vifzpokcyf2i55
Remove commit-bot and diffresource.

The code and history for them now reside in seperate repositories at
https://github.com/twisted-infra.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python
2
 
 
3
 
import sys, os
4
 
 
5
 
from twisted.python import log
6
 
 
7
 
import config, alert
8
 
 
9
 
if __name__ == '__main__':
10
 
    data = sys.stdin.read()[:-1]
11
 
    log.startLogging(
12
 
        file(os.path.expanduser(
13
 
            os.path.join(config.LOG_ROOT, '.alert.log')), 'a'))
14
 
    items = [datum.split('\t') for datum in data.split('\n')]
15
 
    log.msg(repr(data))
16
 
    log.msg(repr(items))
17
 
    alert.main(items)