source:
people/peter.buschman/backup_monitoring/parsing/parsers/bpimagelist/foo.py
Last change on this file was 976, checked in by , on Dec 6, 2011 at 10:19:33 AM | |
---|---|
File size: 322 bytes |
Line | |
---|---|
1 | |
2 | import time |
3 | |
4 | from backup_monitoring.parsing.parsers import bpimagelist as parser |
5 | |
6 | file = open('test.txt', 'r') |
7 | |
8 | stream = parser.stream(file) |
9 | |
10 | i = 0 |
11 | |
12 | for record in stream: |
13 | |
14 | i += 1 |
15 | |
16 | if i % 1000 == 0: |
17 | print i |
18 | |
19 | image = parser.parse(record) |
20 | |
21 | #print image.backup_id |
22 | |
23 | file.close() |
Note:
See TracBrowser
for help on using the repository browser.