[Scipy-svn] r2457 - trunk/Lib/sandbox/models/tests
scipy-svn at scipy.org
scipy-svn at scipy.org
Thu Dec 21 19:29:01 EST 2006
Author: jarrod.millman
Date: 2006-12-21 18:29:00 -0600 (Thu, 21 Dec 2006)
New Revision: 2457
Modified:
trunk/Lib/sandbox/models/tests/test_formula.py
Log:
revert back to using string module
Modified: trunk/Lib/sandbox/models/tests/test_formula.py
===================================================================
--- trunk/Lib/sandbox/models/tests/test_formula.py 2006-12-22 00:12:05 UTC (rev 2456)
+++ trunk/Lib/sandbox/models/tests/test_formula.py 2006-12-22 00:29:00 UTC (rev 2457)
@@ -1,5 +1,6 @@
import csv
import os
+import string
import unittest
import numpy as N
@@ -53,7 +54,7 @@
self.namespace = {}
self.terms = []
for i in range(10):
- name = '%s' % i.upper()
+ name = '%s' % string.uppercase[i]
self.namespace[name] = self.X[:,i]
self.terms.append(formula.term(name))
More information about the Scipy-svn
mailing list