remove unused variables
This commit is contained in:
parent
aa89db2d82
commit
aa5766d5af
@ -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
|
||||
|
||||
|
@ -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, '* * * *')
|
||||
|
Loading…
Reference in New Issue
Block a user