~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/enums.py

[rs=buildbot-poller] automatic merge from stable. Revisions: 13831,
        13832, 13833, 13834, 13835 included.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
    'PackagePublishingStatus',
21
21
    'PackageUploadCustomFormat',
22
22
    'PackageUploadStatus',
 
23
    're_bug_numbers',
 
24
    're_closes',
 
25
    're_lp_closes',
23
26
    'SourcePackageFormat',
24
27
    ]
25
28
 
 
29
import re
 
30
 
26
31
from lazr.enum import (
27
32
    DBEnumeratedType,
28
33
    DBItem,
29
34
    )
30
35
 
31
36
 
 
37
# Regexes that match bug numbers for closing in change logs.
 
38
re_closes = re.compile(
 
39
    r"closes:\s*(?:bug)?\#?\s?\d+(?:,\s*(?:bug)?\#?\s?\d+)*", re.I)
 
40
re_lp_closes = re.compile(r"lp:\s+\#\d+(?:,\s*\#\d+)*", re.I)
 
41
re_bug_numbers = re.compile(r"\#?\s?(\d+)")
 
42
 
 
43
 
32
44
class ArchiveJobType(DBEnumeratedType):
33
45
    """Values that IArchiveJob.job_type can take."""
34
46