remove unused variables

This commit is contained in:
Dustin J. Mitchell 2012-03-12 16:09:17 -07:00
parent aa89db2d82
commit aa5766d5af
2 changed files with 0 additions and 3 deletions

View File

@ -145,11 +145,9 @@ class croniter(object):
def _calc(self, now, expanded, is_prev):
if is_prev:
nearest_method = self._get_prev_nearest
nearest_diff_method = self._get_prev_nearest_diff
sign = -1
else:
nearest_method = self._get_next_nearest
nearest_diff_method = self._get_next_nearest_diff
sign = 1

View File

@ -119,7 +119,6 @@ class CroniterTest(unittest.TestCase):
self.assertEqual(n4.year, 2011)
def testError(self):
base = datetime(2010, 1, 25)
itr = croniter('* * * * *')
self.assertRaises(TypeError, itr.get_next, str)
self.assertRaises(ValueError, croniter, '* * * *')