Skip to content

Commit 594df90

Browse files
committed
Consolidate imports
1 parent a3adb6c commit 594df90

File tree

3 files changed

+10
-19
lines changed

3 files changed

+10
-19
lines changed

homu/main.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,6 @@
4141

4242
global_cfg = {}
4343

44-
WORDS_TO_ROLLUP = {
45-
'rollup-': 0,
46-
'rollup': 1,
47-
'rollup=maybe': 0,
48-
'rollup=never': -2,
49-
'rollup=iffy': -1,
50-
'rollup=always': 1,
51-
}
52-
5344

5445
@contextmanager
5546
def buildbot_sess(repo_cfg):

homu/parse_issue_comment.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
from itertools import chain
22
import re
33

4+
WORDS_TO_ROLLUP = {
5+
'rollup-': 0,
6+
'rollup': 1,
7+
'rollup=maybe': 0,
8+
'rollup=never': -2,
9+
'rollup=iffy': -1,
10+
'rollup=always': 1,
11+
}
12+
413

514
class IssueCommentCommand:
615
"""
@@ -93,16 +102,6 @@ def hook(cls, hook_name, hook_extra=None):
93102
return command
94103

95104

96-
WORDS_TO_ROLLUP = {
97-
'rollup-': 0,
98-
'rollup': 1,
99-
'rollup=maybe': 0,
100-
'rollup=never': -2,
101-
'rollup=iffy': -1,
102-
'rollup=always': 1,
103-
}
104-
105-
106105
def is_sha(sha):
107106
"""
108107
Try to determine if the input is a git sha

homu/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ class G:
4343

4444
g = G()
4545

46+
4647
ROLLUP_STR = {
4748
-2: 'never',
4849
-1: 'iffy',

0 commit comments

Comments
 (0)