annotate bin/dfi @ 408:baf2dd1cc56c

[gitconfig] Set default push mode.
author Edho Arief <edho@myconan.net>
date Sun, 11 Nov 2012 14:59:06 +0700
parents 006c273399fb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
277
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
1 #!/usr/bin/env python
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
2
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
3 import os
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
4 import sys
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
5
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
6 rows = sys.stdin.readlines()
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
7
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
8 for row in rows:
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
9 if row.find(' ', 1, 49) == -1:
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
10 row = row[0:48] + ' ' + row[48:]
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
11 data = row.split(None, 5)
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
12 print '|'.join(data)
006c273399fb Something.
Edho Arief <edho@myconan.net>
parents:
diff changeset
13