[crush-tools] r526 committed - * small fix to make python 2.7.3/3.x compatible

2 views
Skip to first unread message

crush...@googlecode.com

unread,
Mar 15, 2013, 9:17:39 PM3/15/13
to crush...@googlegroups.com
Revision: 526
Author: warlock.cc
Date: Fri Mar 15 18:17:29 2013
Log: * small fix to make python 2.7.3/3.x compatible

http://code.google.com/p/crush-tools/source/detail?r=526

Modified:
/trunk/dev_tools/datagen

=======================================
--- /trunk/dev_tools/datagen Thu Nov 20 20:55:23 2008
+++ /trunk/dev_tools/datagen Fri Mar 15 18:17:29 2013
@@ -159,11 +159,11 @@

random.seed()

- print delim.join(labels)
+ print(delim.join(labels))

n_fields = len(fields)
- for i in xrange(0, rows):
- for j in xrange(0, n_fields):
+ for i in range(0, rows):
+ for j in range(0, n_fields):
sys.stdout.write("%s" % fields[j].GetValue())
if j < n_fields - 1:
sys.stdout.write(delim)
Reply all
Reply to author
Forward
0 new messages