diff options
author | Ludovic Pouzenc <lpouzenc@gmail.com> | 2015-06-28 01:03:35 +0200 |
---|---|---|
committer | Ludovic Pouzenc <lpouzenc@gmail.com> | 2015-06-28 01:03:35 +0200 |
commit | 6e6c3eabb0d08bed0b7d85f90326c2853e99e9b7 (patch) | |
tree | e3073825a37955f6f84a12979a0afff0dbd0d7c8 /tools/pattern.py | |
parent | 194b65f14adf2b442c3a8c4ed3a85d4472b09df8 (diff) | |
download | raidguessfs-6e6c3eabb0d08bed0b7d85f90326c2853e99e9b7.tar.gz raidguessfs-6e6c3eabb0d08bed0b7d85f90326c2853e99e9b7.tar.bz2 raidguessfs-6e6c3eabb0d08bed0b7d85f90326c2853e99e9b7.zip |
Minor change : carriage return instead of space between patterns.
Happier in a terminal with a simple cat.
Diffstat (limited to 'tools/pattern.py')
-rwxr-xr-x | tools/pattern.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/pattern.py b/tools/pattern.py index 0367698..3d3466d 100755 --- a/tools/pattern.py +++ b/tools/pattern.py @@ -1,10 +1,12 @@ #!/usr/bin/env python +import sys + def main(): i=0 max=pow(10,15) while True: - print "%015d"%i, + sys.stdout.write("%015d\n"%i) i=(i+1)%max |