From 6e6c3eabb0d08bed0b7d85f90326c2853e99e9b7 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sun, 28 Jun 2015 01:03:35 +0200 Subject: Minor change : carriage return instead of space between patterns. Happier in a terminal with a simple cat. --- tools/pattern.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3