summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-04-09 10:04:56 +0300
committerGitHub <noreply@github.com>2023-04-09 10:04:56 +0300
commitf94845cc3c67dff87dc16119a2cb4312015d249c (patch)
tree6219df051e027bcba421860a3e72752f0997a681
parente9f72c7c45f9de7910febafffd7fa71e1f0c6a82 (diff)
downloadcroniter-f94845cc3c67dff87dc16119a2cb4312015d249c.tar.gz
Do not expose `i` into global namespace
Hi, I am working on stubs for this module in `python/typeshed`, looks like this symbol is exposed: https://github.com/python/typeshed/actions/runs/4647756507/jobs/8224937971#step:5:229 I don't think that this is intentional, so it is better to remove it.
-rw-r--r--src/croniter/croniter.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/croniter/croniter.py b/src/croniter/croniter.py
index a461bbf..89246ea 100644
--- a/src/croniter/croniter.py
+++ b/src/croniter/croniter.py
@@ -29,6 +29,7 @@ DOW_ALPHAS = {'sun': 0, 'mon': 1, 'tue': 2, 'wed': 3, 'thu': 4, 'fri': 5, 'sat':
ALPHAS = {}
for i in M_ALPHAS, DOW_ALPHAS:
ALPHAS.update(i)
+del i
step_search_re = re.compile(r'^([^-]+)-([^-/]+)(/(\d+))?$')
only_int_re = re.compile(r'^\d+$')