Commit d8adc7f6 authored by Jérome Perrin's avatar Jérome Perrin

s/range/xrange

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16202 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f894661f
......@@ -176,7 +176,7 @@ monthly_total = {}\n
for ((person_path, person_title), person_dict) in gathered_data:\n
person_total = 0\n
print "<tr><td><a href=\\"%s\\">%s</a></td>" % (person_path, person_title)\n
for month in range(12) :\n
for month in xrange(12) :\n
print "<td>"\n
if person_dict.has_key(month) :\n
person_total += person_dict[month]["salary"]\n
......@@ -194,7 +194,7 @@ for ((person_path, person_title), person_dict) in gathered_data:\n
\n
print "<th class=\'total\'>%s</th>" % (N_(\'Total\'))\n
check_total = 0\n
for month in range(12):\n
for month in xrange(12):\n
print "<td>"\n
if monthly_total.has_key(month):\n
print monthly_total[month]\n
......@@ -293,7 +293,7 @@ return printed\n
<string>monthly_total</string>
<string>person_dict</string>
<string>person_total</string>
<string>range</string>
<string>xrange</string>
<string>dup_ps</string>
<string>check_total</string>
</tuple>
......
......@@ -80,7 +80,7 @@ payment_date = kw[\'payment_condition_payment_date\']\n
currency = kw[\'resource\']\n
\n
kw = {\'skip_redirect\': True}\n
for line_index in range(len(listbox)):\n
for line_index in xrange(len(listbox)):\n
line = listbox[line_index]\n
\n
# Ignore employee without gross salary\n
......@@ -186,7 +186,7 @@ context.REQUEST.RESPONSE.redirect("%s?portal_status_message=%s" % ( context.getP
<string>currency</string>
<string>True</string>
<string>_getiter_</string>
<string>range</string>
<string>xrange</string>
<string>len</string>
<string>line_index</string>
<string>line</string>
......
......@@ -108,7 +108,7 @@ total_time = int(total_time + (DateTime() - current_start_date))\n
\n
\n
# Get the legal resignment delay\n
for i in range(len(legal_delays)):\n
for i in xrange(len(legal_delays)):\n
if i < len(legal_delays)-1:\n
if legal_delays[i][\'days\'] >= total_time:\n
return legal_delays[i][\'delay\']\n
......@@ -176,7 +176,7 @@ for i in range(len(legal_delays)):\n
<string>TypeError</string>
<string>int</string>
<string>DateTime</string>
<string>range</string>
<string>xrange</string>
<string>len</string>
<string>i</string>
</tuple>
......
157
\ No newline at end of file
158
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment