Skip to content

Commit 9a32376

Browse files
committed
Add GH issue magic number in a variable
1 parent 724fefb commit 9a32376

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

blurb/blurb.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,8 @@ def finish_entry():
473473

474474
no_changes = metadata.get('no changes')
475475

476+
lowest_possible_gh_issue_number = 32426
477+
476478
issue_keys = {
477479
'gh-issue': 'GitHub',
478480
'bpo': 'bpo',
@@ -486,7 +488,7 @@ def finish_entry():
486488
# we'll complain about the *first* error
487489
# we see in the blurb file, which is a
488490
# better user experience.
489-
if key == "gh-issue" and int(value) < 32426:
491+
if key == "gh-issue" and int(value) < lowest_possible_gh_issue_number:
490492
throw("The gh-issue number should be 32426 or above.")
491493

492494
if key in issue_keys:
@@ -959,7 +961,7 @@ def init_tmp_with_template():
959961
failure = str(e)
960962

961963
if not failure:
962-
assert len(blurb) # if parse_blurb succeeds, we should always have a body
964+
assert len(blurb) # if parse_blurb succeeds, we should always have a body
963965
if len(blurb) > 1:
964966
failure = "Too many entries! Don't specify '..' on a line by itself."
965967

0 commit comments

Comments
 (0)